this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks.cart=function(e){function t(t){for(var r,a,s=t[0],i=t[1],l=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(u&&u(t);p.length;)p.shift()();return n.push.apply(n,l||[]),c()}function c(){for(var e,t=0;t<n.length;t++){for(var c=n[t],r=!0,s=1;s<c.length;s++){var i=c[s];0!==o[i]&&(r=!1)}r&&(n.splice(t--,1),e=a(a.s=c[0]))}return e}var r={},o={10:0,1:0,2:0,3:0,4:0,25:0,35:0,37:0,41:0},n=[];function a(t){if(r[t])return r[t].exports;var c=r[t]={i:t,l:!1,exports:{}};return e[t].call(c.exports,c,c.exports,a),c.l=!0,c.exports}a.m=e,a.c=r,a.d=function(e,t,c){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(c,r,function(t){return e[t]}.bind(null,r));return c},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var u=i;return n.push([445,0]),c()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wc.wcSettings},,function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wc.wcBlocksData},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=window.wp.htmlEntities},function(e,t){e.exports=window.wp.compose},,function(e,t){e.exports=window.wc.blocksCheckout},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.wp.url},,function(e,t,c){"use strict";c.d(t,"p",(function(){return n})),c.d(t,"n",(function(){return a})),c.d(t,"m",(function(){return s})),c.d(t,"o",(function(){return i})),c.d(t,"k",(function(){return l})),c.d(t,"e",(function(){return u})),c.d(t,"h",(function(){return d})),c.d(t,"l",(function(){return p})),c.d(t,"c",(function(){return b})),c.d(t,"d",(function(){return m})),c.d(t,"g",(function(){return g})),c.d(t,"a",(function(){return _})),c.d(t,"b",(function(){return j})),c.d(t,"i",(function(){return k})),c.d(t,"j",(function(){return f})),c.d(t,"f",(function(){return y}));var r,o=c(3);const n=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),a=n.pluginUrl+"images/",s=n.pluginUrl+"build/",i=n.buildPhase,l=null===(r=o.STORE_PAGES.shop)||void 0===r?void 0:r.permalink,u=o.STORE_PAGES.checkout.id,d=(o.STORE_PAGES.checkout.permalink,o.STORE_PAGES.privacy.permalink),p=(o.STORE_PAGES.privacy.title,o.STORE_PAGES.terms.permalink),b=(o.STORE_PAGES.terms.title,o.STORE_PAGES.cart.id),m=o.STORE_PAGES.cart.permalink,g=(o.STORE_PAGES.myaccount.permalink?o.STORE_PAGES.myaccount.permalink:Object(o.getSetting)("wpLoginUrl","/wp-login.php"),Object(o.getSetting)("localPickupEnabled",!1)),O=Object(o.getSetting)("countries",{}),h=Object(o.getSetting)("countryData",{}),_=Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowBilling)).map((e=>[e,O[e]||""]))),j=Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowBilling)).map((e=>[e,h[e].states||[]]))),k=Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowShipping)).map((e=>[e,O[e]||""]))),f=Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowShipping)).map((e=>[e,h[e].states||[]]))),y=Object.fromEntries(Object.keys(h).map((e=>[e,h[e].locale||[]])))},,,,function(e,t,c){"use strict";c.d(t,"b",(function(){return o})),c.d(t,"c",(function(){return n})),c.d(t,"a",(function(){return a}));var r=c(42);const o=e=>!Object(r.a)(e)&&e instanceof Object&&e.constructor===Object;function n(e,t){return o(e)&&t in e}const a=e=>0===Object.keys(e).length},function(e,t){e.exports=window.wc.priceFormat},function(e,t,c){"use strict";c.d(t,"h",(function(){return l})),c.d(t,"e",(function(){return u})),c.d(t,"b",(function(){return d})),c.d(t,"i",(function(){return p})),c.d(t,"f",(function(){return b})),c.d(t,"c",(function(){return m})),c.d(t,"d",(function(){return g})),c.d(t,"g",(function(){return O})),c.d(t,"a",(function(){return h}));var r=c(15),o=c(14),n=c.n(o),a=c(3),s=c(17);const i=(e,t)=>{const c=new Map;return e.filter((e=>{const r=t(e);return!c.has(r)&&(c.set(r,e),!0)}))},l=({selected:e=[],search:t="",queryArgs:c={}})=>{const o=(({selected:e=[],search:t="",queryArgs:c={}})=>{const o=s.p.productCount>100,n={per_page:o?100:0,catalog_visibility:"any",search:t,orderby:"title",order:"asc"},a=[Object(r.addQueryArgs)("/wc/store/v1/products",{...n,...c})];return o&&e.length&&a.push(Object(r.addQueryArgs)("/wc/store/v1/products",{catalog_visibility:"any",include:e,per_page:0})),a})({selected:e,search:t,queryArgs:c});return Promise.all(o.map((e=>n()({path:e})))).then((e=>{const t=e.flat();return i(t,(e=>e.id)).map((e=>({...e,parent:0})))})).catch((e=>{throw e}))},u=e=>n()({path:`/wc/store/v1/products/${e}`}),d=()=>n()({path:"wc/store/v1/products/attributes"}),p=e=>n()({path:`wc/store/v1/products/attributes/${e}/terms`}),b=({selected:e=[],search:t})=>{const c=(({selected:e=[],search:t})=>{const c=Object(a.getSetting)("limitTags",!1),o=[Object(r.addQueryArgs)("wc/store/v1/products/tags",{per_page:c?100:0,orderby:c?"count":"name",order:c?"desc":"asc",search:t})];return c&&e.length&&o.push(Object(r.addQueryArgs)("wc/store/v1/products/tags",{include:e})),o})({selected:e,search:t});return Promise.all(c.map((e=>n()({path:e})))).then((e=>{const t=e.flat();return i(t,(e=>e.id))}))},m=e=>n()({path:Object(r.addQueryArgs)("wc/store/v1/products/categories",{per_page:0,...e})}),g=e=>n()({path:`wc/store/v1/products/categories/${e}`}),O=e=>n()({path:Object(r.addQueryArgs)("wc/store/v1/products",{per_page:0,type:"variation",parent:e})}),h=(e,t)=>{if(!e.title.raw)return e.slug;const c=1===t.filter((t=>t.title.raw===e.title.raw)).length;return e.title.raw+(c?"":` - ${e.slug}`)}},function(e,t){e.exports=window.wc.wcBlocksSharedContext},function(e,t){e.exports=window.wp.isShallowEqual},function(e,t){e.exports=window.React},function(e,t){e.exports=window.lodash},,function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o);t.a=({label:e,screenReaderLabel:t,wrapperElement:c,wrapperProps:o={}})=>{let a;const s=null!=e,i=null!=t;return!s&&i?(a=c||"span",o={...o,className:n()(o.className,"screen-reader-text")},Object(r.createElement)(a,{...o},t)):(a=c||r.Fragment,s&&i&&e!==t?Object(r.createElement)(a,{...o},Object(r.createElement)("span",{"aria-hidden":"true"},e),Object(r.createElement)("span",{className:"screen-reader-text"},t)):Object(r.createElement)(a,{...o},e))}},,,,,,,function(e,t){e.exports=window.wc.wcBlocksRegistry},function(e,t){e.exports=window.wp.deprecated},,,function(e,t,c){"use strict";var r=c(0),o=c(145),n=c(4),a=c.n(n);c(154);const s=e=>({thousandSeparator:null==e?void 0:e.thousandSeparator,decimalSeparator:null==e?void 0:e.decimalSeparator,fixedDecimalScale:!0,prefix:null==e?void 0:e.prefix,suffix:null==e?void 0:e.suffix,isNumericString:!0});t.a=({className:e,value:t,currency:c,onValueChange:n,displayType:i="text",...l})=>{var u;const d="string"==typeof t?parseInt(t,10):t;if(!Number.isFinite(d))return null;const p=d/10**c.minorUnit;if(!Number.isFinite(p))return null;const b=a()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",e),m=null!==(u=l.decimalScale)&&void 0!==u?u:null==c?void 0:c.minorUnit,g={...l,...s(c),decimalScale:m,value:void 0,currency:void 0,onValueChange:void 0},O=n?e=>{const t=+e.value*10**c.minorUnit;n(t)}:()=>{};return Object(r.createElement)(o.a,{className:b,displayType:i,...g,value:p,onValueChange:O})}},,function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r=e=>null===e},function(e,t){e.exports=window.wp.hooks},,,function(e,t){e.exports=window.wp.a11y},function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var r=c(0),o=c(25),n=c.n(o);function a(e){const t=Object(r.useRef)(e);return n()(e,t.current)||(t.current=e),t.current}},function(e,t){e.exports=window.wc.wcBlocksSharedHocs},,,function(e,t){e.exports=window.wp.autop},,,,,function(e,t,c){"use strict";var r=c(0),o=c(78),n=c(41);const a=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"];t.a=({children:e,style:t={},...c})=>{const s=Object(r.useRef)(null),i=()=>{s.current&&o.focus.focusable.find(s.current).forEach((e=>{a.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")}))},l=Object(n.b)(i,0,{leading:!0});return Object(r.useLayoutEffect)((()=>{let e;return i(),s.current&&(e=new window.MutationObserver(l),e.observe(s.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),l.cancel()}}),[l]),Object(r.createElement)("div",{ref:s,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...t},...c},e)}},,function(e,t){e.exports=window.wp.keycodes},function(e,t,c){"use strict";c.d(t,"a",(function(){return k}));var r=c(116),o=c.n(r),n=c(0),a=c(8),s=c(6),i=c(10),l=c(282),u=c(95);var d=c(281);const p=e=>{const t=null==e?void 0:e.detail;t&&t.preserveCartData||Object(s.dispatch)(a.CART_STORE_KEY).invalidateResolutionForStore()},b=e=>{(null!=e&&e.persisted||"back_forward"===(window.performance&&window.performance.getEntriesByType("navigation").length?window.performance.getEntriesByType("navigation")[0].type:""))&&Object(s.dispatch)(a.CART_STORE_KEY).invalidateResolutionForStore()},m=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},g={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},O={...g,email:""},h={total_items:"",total_items_tax:"",total_fees:"",total_fees_tax:"",total_discount:"",total_discount_tax:"",total_shipping:"",total_shipping_tax:"",total_price:"",total_tax:"",tax_lines:a.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},_=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Object(i.decodeEntities)(t)]))),j={cartCoupons:a.EMPTY_CART_COUPONS,cartItems:a.EMPTY_CART_ITEMS,cartFees:a.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:a.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:a.EMPTY_CART_ITEM_ERRORS,cartTotals:h,cartIsLoading:!0,cartErrors:a.EMPTY_CART_ERRORS,billingAddress:O,shippingAddress:g,shippingRates:a.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentMethods:a.EMPTY_PAYMENT_METHODS,paymentRequirements:a.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},receiveCartContents:()=>{},extensions:a.EMPTY_EXTENSIONS},k=(e={shouldSelect:!0})=>{const{isEditor:t,previewData:c}=Object(u.b)(),r=null==c?void 0:c.previewCart,{shouldSelect:i}=e,h=Object(n.useRef)();Object(n.useEffect)((()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),(null===(e=window.wcBlocksStoreCartListeners)||void 0===e?void 0:e.count)>0)return void window.wcBlocksStoreCartListeners.count++;var e;document.body.addEventListener("wc-blocks_added_to_cart",p),document.body.addEventListener("wc-blocks_removed_from_cart",p),window.addEventListener("pageshow",b);const t=Object(d.a)("added_to_cart","wc-blocks_added_to_cart"),c=Object(d.a)("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",p),document.body.removeEventListener("wc-blocks_removed_from_cart",p),window.removeEventListener("pageshow",b),t(),c()}})(),m)),[]);const k=Object(s.useSelect)(((e,{dispatch:c})=>{if(!i)return j;if(t)return{cartCoupons:r.coupons,cartItems:r.items,crossSellsProducts:r.cross_sells,cartFees:r.fees,cartItemsCount:r.items_count,cartItemsWeight:r.items_weight,cartNeedsPayment:r.needs_payment,cartNeedsShipping:r.needs_shipping,cartItemErrors:a.EMPTY_CART_ITEM_ERRORS,cartTotals:r.totals,cartIsLoading:!1,cartErrors:a.EMPTY_CART_ERRORS,billingData:O,billingAddress:O,shippingAddress:g,extensions:a.EMPTY_EXTENSIONS,shippingRates:r.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:r.has_calculated_shipping,paymentRequirements:r.paymentRequirements,receiveCart:"function"==typeof(null==r?void 0:r.receiveCart)?r.receiveCart:()=>{},receiveCartContents:"function"==typeof(null==r?void 0:r.receiveCartContents)?r.receiveCartContents:()=>{}};const o=e(a.CART_STORE_KEY),n=o.getCartData(),s=o.getCartErrors(),u=o.getCartTotals(),d=!o.hasFinishedResolution("getCartData"),p=o.isCustomerDataUpdating(),{receiveCart:b,receiveCartContents:m}=c(a.CART_STORE_KEY),h=_(n.billingAddress),k=n.needsShipping?_(n.shippingAddress):h,f=n.fees.length>0?n.fees.map((e=>_(e))):a.EMPTY_CART_FEES;return{cartCoupons:n.coupons.length>0?n.coupons.map((e=>({...e,label:e.code}))):a.EMPTY_CART_COUPONS,cartItems:n.items,crossSellsProducts:n.crossSells,cartFees:f,cartItemsCount:n.itemsCount,cartItemsWeight:n.itemsWeight,cartNeedsPayment:n.needsPayment,cartNeedsShipping:n.needsShipping,cartItemErrors:n.errors,cartTotals:u,cartIsLoading:d,cartErrors:s,billingData:Object(l.a)(h),billingAddress:Object(l.a)(h),shippingAddress:Object(l.a)(k),extensions:n.extensions,shippingRates:n.shippingRates,isLoadingRates:p,cartHasCalculatedShipping:n.hasCalculatedShipping,paymentRequirements:n.paymentRequirements,receiveCart:b,receiveCartContents:m}}),[i]);return h.current&&o()(h.current,k)||(h.current=k),h.current}},function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));let r=function(e){return e.SINGLE="single",e.THUMBNAIL="thumbnail",e}({})},,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return o})),c.d(t,"e",(function(){return n})),c.d(t,"d",(function(){return a})),c.d(t,"b",(function(){return i})),c.d(t,"c",(function(){return l}));var r=c(21);const o=(e,t)=>e[t]?Array.from(e[t].values()).sort(((e,t)=>e.priority-t.priority)):[];let n=function(e){return e.SUCCESS="success",e.FAIL="failure",e.ERROR="error",e}({}),a=function(e){return e.CART="wc/cart",e.CHECKOUT="wc/checkout",e.PAYMENTS="wc/checkout/payments",e.EXPRESS_PAYMENTS="wc/checkout/express-payments",e.CONTACT_INFORMATION="wc/checkout/contact-information",e.SHIPPING_ADDRESS="wc/checkout/shipping-address",e.BILLING_ADDRESS="wc/checkout/billing-address",e.SHIPPING_METHODS="wc/checkout/shipping-methods",e.CHECKOUT_ACTIONS="wc/checkout/checkout-actions",e}({});const s=(e,t)=>Object(r.b)(e)&&"type"in e&&e.type===t,i=e=>s(e,n.ERROR),l=e=>s(e,n.FAIL)},,,function(e,t,c){"use strict";var r=c(0),o=c(180),n=c(4),a=c.n(n),s=c(109);c(184),t.a=({className:e,showSpinner:t=!1,children:c,variant:n="contained",...i})=>{const l=a()("wc-block-components-button","wp-element-button",e,n,{"wc-block-components-button--loading":t});return Object(r.createElement)(o.a,{className:l,...i},t&&Object(r.createElement)(s.a,null),Object(r.createElement)("span",{className:"wc-block-components-button__text"},c))}},function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r="wc/store/payment"},,,,,,function(e,t){e.exports=window.wp.dom},function(e,t){e.exports=window.wp.coreData},,,,function(e,t,c){"use strict";c.d(t,"c",(function(){return n})),c.d(t,"a",(function(){return a})),c.d(t,"b",(function(){return s}));var r=c(7),o=c(17);const n=(e,t)=>{if(o.o>2)return Object(r.registerBlockType)(e,t)},a=()=>o.o>2,s=()=>o.o>1},function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r=e=>"number"==typeof e},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(4),a=c.n(n),s=(c(296),c(109));t.a=({children:e,className:t,screenReaderLabel:c,showSpinner:n=!1,isLoading:i=!0})=>Object(r.createElement)("div",{className:a()(t,{"wc-block-components-loading-mask":i})},i&&n&&Object(r.createElement)(s.a,null),Object(r.createElement)("div",{className:a()({"wc-block-components-loading-mask__children":i}),"aria-hidden":i},e),i&&Object(r.createElement)("span",{className:"screen-reader-text"},c||Object(o.__)("Loading…","woocommerce")))},function(e,t,c){"use strict";c.d(t,"a",(function(){return d}));var r=c(4),o=c.n(r),n=c(21),a=c(113),s=c(654),i=c(127);function l(e={}){const t={};return Object(i.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function u(e,t){return e&&t?`has-${Object(s.a)(t)}-${e}`:""}const d=e=>{const t=(e=>{const t=Object(n.b)(e)?e:{style:{}};let c=t.style;return Object(a.a)(c)&&(c=JSON.parse(c)||{}),Object(n.b)(c)||(c={}),{...t,style:c}})(e),c=function(e){var t,c,r,a,s,i,d;const{backgroundColor:p,textColor:b,gradient:m,style:g}=e,O=u("background-color",p),h=u("color",b),_=function(e){if(e)return`has-${e}-gradient-background`}(m),j=_||(null==g||null===(t=g.color)||void 0===t?void 0:t.gradient);return{className:o()(h,_,{[O]:!j&&!!O,"has-text-color":b||(null==g||null===(c=g.color)||void 0===c?void 0:c.text),"has-background":p||(null==g||null===(r=g.color)||void 0===r?void 0:r.background)||m||(null==g||null===(a=g.color)||void 0===a?void 0:a.gradient),"has-link-color":Object(n.b)(null==g||null===(s=g.elements)||void 0===s?void 0:s.link)?null==g||null===(i=g.elements)||void 0===i||null===(d=i.link)||void 0===d?void 0:d.color:void 0}),style:l({color:(null==g?void 0:g.color)||{}})}}(t),r=function(e){var t;const c=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:c,style:r}=e,n=c?u("border-color",c):"";return o()({"has-border-color":!!c||!(null==r||null===(t=r.border)||void 0===t||!t.color),[n]:!!n})}(e),style:l({border:c})}}(t),s=function(e){var t;return{className:void 0,style:l({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}(t),i=(e=>{const t=Object(n.b)(e.style.typography)?e.style.typography:{},c=Object(a.a)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:c,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}})(t);return{className:o()(i.className,c.className,r.className,s.className),style:{...i.style,...c.style,...r.style,...s.style}}}},,,,,,function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(40),a=c(4),s=c.n(a),i=c(22);c(183);const l=({currency:e,maxPrice:t,minPrice:c,priceClassName:a,priceStyle:l={}})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("span",{className:"screen-reader-text"},Object(o.sprintf)(/* translators: %1$s min price, %2$s max price */
Object(o.__)("Price between %1$s and %2$s","woocommerce"),Object(i.formatPrice)(c),Object(i.formatPrice)(t))),Object(r.createElement)("span",{"aria-hidden":!0},Object(r.createElement)(n.a,{className:s()("wc-block-components-product-price__value",a),currency:e,value:c,style:l})," — ",Object(r.createElement)(n.a,{className:s()("wc-block-components-product-price__value",a),currency:e,value:t,style:l}))),u=({currency:e,regularPriceClassName:t,regularPriceStyle:c,regularPrice:a,priceClassName:i,priceStyle:l,price:u})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)("span",{className:"screen-reader-text"},Object(o.__)("Previous price:","woocommerce")),Object(r.createElement)(n.a,{currency:e,renderText:e=>Object(r.createElement)("del",{className:s()("wc-block-components-product-price__regular",t),style:c},e),value:a}),Object(r.createElement)("span",{className:"screen-reader-text"},Object(o.__)("Discounted price:","woocommerce")),Object(r.createElement)(n.a,{currency:e,renderText:e=>Object(r.createElement)("ins",{className:s()("wc-block-components-product-price__value","is-discounted",i),style:l},e),value:u}));t.a=({align:e,className:t,currency:c,format:o="<price/>",maxPrice:a,minPrice:i,price:d,priceClassName:p,priceStyle:b,regularPrice:m,regularPriceClassName:g,regularPriceStyle:O,style:h})=>{const _=s()(t,"price","wc-block-components-product-price",{[`wc-block-components-product-price--align-${e}`]:e});o.includes("<price/>")||(o="<price/>",console.error("Price formats need to include the `<price/>` tag."));const j=m&&d!==m;let k=Object(r.createElement)("span",{className:s()("wc-block-components-product-price__value",p)});return j?k=Object(r.createElement)(u,{currency:c,price:d,priceClassName:p,priceStyle:b,regularPrice:m,regularPriceClassName:g,regularPriceStyle:O}):void 0!==i&&void 0!==a?k=Object(r.createElement)(l,{currency:c,maxPrice:a,minPrice:i,priceClassName:p,priceStyle:b}):d&&(k=Object(r.createElement)(n.a,{className:s()("wc-block-components-product-price__value",p),currency:c,value:d,style:b})),Object(r.createElement)("span",{className:_,style:h},Object(r.createInterpolateElement)(o,{price:k}))}},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o);c(226),t.a=({children:e,className:t})=>Object(r.createElement)("div",{className:n()("wc-block-components-product-badge",t)},e)},,function(e,t,c){"use strict";c.d(t,"b",(function(){return a})),c.d(t,"a",(function(){return s}));var r=c(0),o=c(6);const n=Object(r.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),a=()=>Object(r.useContext)(n),s=({children:e,currentPostId:t=0,previewData:c={},currentView:a="",isPreview:s=!1})=>{const i=Object(o.useSelect)((e=>t||e("core/editor").getCurrentPostId()),[t]),l=Object(r.useCallback)((e=>c&&e in c?c[e]:{}),[c]),u={isEditor:!0,currentPostId:i,currentView:a,previewData:c,getPreviewData:l,isPreview:s};return Object(r.createElement)(n.Provider,{value:u},e)}},,function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var r=c(43),o=c(6),n=c(0);const a=()=>({dispatchStoreEvent:Object(n.useCallback)(((e,t={})=>{try{Object(r.doAction)(`experimental__woocommerce_blocks-${e}`,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:Object(n.useCallback)(((e,t={})=>{try{Object(r.doAction)(`experimental__woocommerce_blocks-checkout-${e}`,{...t,storeCart:Object(o.select)("wc/store/cart").getCartData()})}catch(e){console.error(e)}}),[])})},,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));var r=c(0);function o(e,t){const c=Object(r.useRef)();return Object(r.useEffect)((()=>{c.current===e||t&&!t(e,c.current)||(c.current=e)}),[e,t]),c.current}},function(e,t){e.exports=window.wp.wordcount},,,function(e,t,c){"use strict";var r=c(3),o=c(1),n=c(84),a=c(113),s=c(17);const i=e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=Object(o.sprintf)(/* translators: %s Field label. */
Object(o.__)("%s (optional)","woocommerce"),e.label)),e.priority&&(Object(n.a)(e.priority)&&(t.index=e.priority),Object(a.a)(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},l=Object.entries(s.f).map((([e,t])=>[e,Object.entries(t).map((([e,t])=>[e,i(t)])).reduce(((e,[t,c])=>(e[t]=c,e)),{})])).reduce(((e,[t,c])=>(e[t]=c,e)),{});t.a=(e,t,c="")=>{const o=c&&void 0!==l[c]?l[c]:{};return e.map((e=>({key:e,...r.defaultAddressFields[e]||{},...o[e]||{},...t[e]||{}}))).sort(((e,t)=>e.index-t.index))}},function(e,t){e.exports=window.wp.warning},function(e,t,c){"use strict";var r=c(0);c(185),t.a=()=>Object(r.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},,function(e,t,c){"use strict";c.d(t,"a",(function(){return o})),c.d(t,"b",(function(){return a}));let r=function(e){return e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback",e}({});const o={addEventCallback:(e,t,c=10)=>({id:Math.floor(Math.random()*Date.now()).toString(),type:r.ADD_EVENT_CALLBACK,eventType:e,callback:t,priority:c}),removeEventCallback:(e,t)=>({id:t,type:r.REMOVE_EVENT_CALLBACK,eventType:e})},n={},a=(e=n,{type:t,eventType:c,id:o,callback:a,priority:s})=>{const i=e.hasOwnProperty(c)?new Map(e[c]):new Map;switch(t){case r.ADD_EVENT_CALLBACK:return i.set(o,{priority:s,callback:a}),{...e,[c]:i};case r.REMOVE_EVENT_CALLBACK:return i.delete(o),{...e,[c]:i}}}},,function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r=e=>"string"==typeof e},,,,,,function(e,t,c){"use strict";var r=c(0),o=c(10),n=c(4),a=c.n(n);c(182),t.a=({className:e="",disabled:t=!1,name:c,permalink:n="",target:s,rel:i,style:l,onClick:u,...d})=>{const p=a()("wc-block-components-product-name",e);if(t){const e=d;return Object(r.createElement)("span",{className:p,...e,dangerouslySetInnerHTML:{__html:Object(o.decodeEntities)(c)}})}return Object(r.createElement)("a",{className:p,href:n,target:s,...d,dangerouslySetInnerHTML:{__html:Object(o.decodeEntities)(c)},style:l})}},,function(e,t,c){"use strict";c.d(t,"b",(function(){return C})),c.d(t,"a",(function(){return S}));var r=c(0),o=c(103),n=c(37),a=c.n(n),s=c(6),i=c(8),l=c(111),u=c(284);var d=c(68),p=c(97),b=c(18),m=c.n(b);const g={},O=(e,t,c)=>{const r=((e,t)=>c=>((null==c?void 0:c.paymentRequirements)||[]).every((e=>t.includes(e)))&&e(c))(e,t);return Object.values(g).some((e=>c in e))?((e,t,c)=>r=>{let o=e(r);if(o){const e={};Object.entries(t).forEach((([t,r])=>{c in r&&"function"==typeof r[c]&&(e[t]=r[c])})),o=Object.keys(e).every((t=>{try{return e[t](r)}catch(e){return console.error(`Error when executing callback for ${c} in ${t}`,e),!0}}))}return o})(r,g,c):r},h=(e,t)=>{if(null!==e&&!Object(r.isValidElement)(e))throw new TypeError(`The ${t} property for the payment method must be a React element or null.`)},_=(e,t=[])=>{const c=t.reduce(((t,c)=>(e.hasOwnProperty(c)||t.push(c),t)),[]);if(c.length>0)throw new TypeError("The payment method configuration object is missing the following properties:"+c.join(", "))},j=()=>null;class k{constructor(e){var t,c,r,o;m()(this,"name",void 0),m()(this,"content",void 0),m()(this,"edit",void 0),m()(this,"paymentMethodId",void 0),m()(this,"supports",void 0),m()(this,"icons",void 0),m()(this,"label",void 0),m()(this,"ariaLabel",void 0),m()(this,"placeOrderButtonLabel",void 0),m()(this,"savedTokenComponent",void 0),m()(this,"canMakePaymentFromConfig",void 0),k.assertValidConfig(e),this.name=e.name,this.label=e.label,this.placeOrderButtonLabel=e.placeOrderButtonLabel,this.ariaLabel=e.ariaLabel,this.content=e.content,this.savedTokenComponent=e.savedTokenComponent,this.icons=e.icons||null,this.edit=e.edit,this.paymentMethodId=e.paymentMethodId||this.name,this.supports={showSavedCards:(null==e||null===(t=e.supports)||void 0===t?void 0:t.showSavedCards)||(null==e||null===(c=e.supports)||void 0===c?void 0:c.savePaymentInfo)||!1,showSaveOption:(null==e||null===(r=e.supports)||void 0===r?void 0:r.showSaveOption)||!1,features:(null==e||null===(o=e.supports)||void 0===o?void 0:o.features)||["products"]},this.canMakePaymentFromConfig=e.canMakePayment}get canMakePayment(){return O(this.canMakePaymentFromConfig,this.supports.features,this.name)}}m()(k,"assertValidConfig",(e=>{var t,c,o,n,s,i,l;if(e.savedTokenComponent=e.savedTokenComponent||Object(r.createElement)(j,null),_(e,["name","label","ariaLabel","content","edit","canMakePayment"]),"string"!=typeof e.name)throw new Error("The name property for the payment method must be a string");if(void 0!==e.icons&&!Array.isArray(e.icons)&&null!==e.icons)throw new Error("The icons property for the payment method must be an array or null.");if("string"!=typeof e.paymentMethodId&&void 0!==e.paymentMethodId)throw new Error("The paymentMethodId property for the payment method must be a string or undefined (in which case it will be the value of the name property).");if("string"!=typeof e.placeOrderButtonLabel&&void 0!==e.placeOrderButtonLabel)throw new TypeError("The placeOrderButtonLabel property for the payment method must be a string");if(((e,t)=>{if(null!==e&&!Object(r.isValidElement)(e)&&"string"!=typeof e)throw new TypeError("The label property for the payment method must be a React element, a string, or null.")})(e.label),h(e.content,"content"),h(e.edit,"edit"),h(e.savedTokenComponent,"savedTokenComponent"),"string"!=typeof e.ariaLabel)throw new TypeError("The ariaLabel property for the payment method must be a string");if("function"!=typeof e.canMakePayment)throw new TypeError("The canMakePayment property for the payment method must be a function.");if(void 0!==(null===(t=e.supports)||void 0===t?void 0:t.showSavedCards)&&"boolean"!=typeof(null===(c=e.supports)||void 0===c?void 0:c.showSavedCards))throw new TypeError("If the payment method includes the `supports.showSavedCards` property, it must be a boolean");if(void 0!==(null===(o=e.supports)||void 0===o?void 0:o.savePaymentInfo)&&a()("Passing savePaymentInfo when registering a payment method.",{alternative:"Pass showSavedCards and showSaveOption",plugin:"woocommerce-gutenberg-products-block",link:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3686"}),void 0!==(null===(n=e.supports)||void 0===n?void 0:n.features)&&!Array.isArray(null===(s=e.supports)||void 0===s?void 0:s.features))throw new Error("The features property for the payment method must be an array or undefined.");if(void 0!==(null===(i=e.supports)||void 0===i?void 0:i.showSaveOption)&&"boolean"!=typeof(null===(l=e.supports)||void 0===l?void 0:l.showSaveOption))throw new TypeError("If the payment method includes the `supports.showSaveOption` property, it must be a boolean")}));class f{constructor(e){var t;m()(this,"name",void 0),m()(this,"content",void 0),m()(this,"edit",void 0),m()(this,"paymentMethodId",void 0),m()(this,"supports",void 0),m()(this,"canMakePaymentFromConfig",void 0),f.assertValidConfig(e),this.name=e.name,this.content=e.content,this.edit=e.edit,this.paymentMethodId=e.paymentMethodId||this.name,this.supports={features:(null==e||null===(t=e.supports)||void 0===t?void 0:t.features)||["products"]},this.canMakePaymentFromConfig=e.canMakePayment}get canMakePayment(){return O(this.canMakePaymentFromConfig,this.supports.features,this.name)}}m()(f,"assertValidConfig",(e=>{var t,c;if(_(e,["name","content","edit"]),"string"!=typeof e.name)throw new TypeError("The name property for the express payment method must be a string");if("string"!=typeof e.paymentMethodId&&void 0!==e.paymentMethodId)throw new Error("The paymentMethodId property for the payment method must be a string or undefined (in which case it will be the value of the name property).");if(void 0!==(null===(t=e.supports)||void 0===t?void 0:t.features)&&!Array.isArray(null===(c=e.supports)||void 0===c?void 0:c.features))throw new Error("The features property for the payment method must be an array or undefined.");if(h(e.content,"content"),h(e.edit,"edit"),"function"!=typeof e.canMakePayment)throw new TypeError("The canMakePayment property for the express payment method must be a function.")})),c(72);const y={},w={};var E=c(95);const v=Object(r.createContext)({onSubmit:()=>{},onCheckoutAfterProcessingWithSuccess:()=>()=>{},onCheckoutAfterProcessingWithError:()=>()=>{},onCheckoutBeforeProcessing:()=>()=>{},onCheckoutValidationBeforeProcessing:()=>()=>{},onCheckoutSuccess:()=>()=>{},onCheckoutFail:()=>()=>{},onCheckoutValidation:()=>()=>{}}),C=()=>Object(r.useContext)(v),S=({children:e,redirectUrl:t})=>{const c=y,n=w,{isEditor:b}=Object(E.b)(),{__internalUpdateAvailablePaymentMethods:m}=Object(s.useDispatch)(i.PAYMENT_STORE_KEY);Object(r.useEffect)((()=>{(b||0!==Object.keys(c).length||0!==Object.keys(n).length)&&m()}),[b,c,n,m]);const{__internalSetRedirectUrl:g,__internalEmitValidateEvent:O,__internalEmitAfterProcessingEvents:h,__internalSetBeforeProcessing:_}=Object(s.useDispatch)(i.CHECKOUT_STORE_KEY),{checkoutRedirectUrl:j,checkoutStatus:k,isCheckoutBeforeProcessing:f,isCheckoutAfterProcessing:C,checkoutHasError:S,checkoutOrderId:P,checkoutOrderNotes:N,checkoutCustomerId:x}=Object(s.useSelect)((e=>{const t=e(i.CHECKOUT_STORE_KEY);return{checkoutRedirectUrl:t.getRedirectUrl(),checkoutStatus:t.getCheckoutStatus(),isCheckoutBeforeProcessing:t.isBeforeProcessing(),isCheckoutAfterProcessing:t.isAfterProcessing(),checkoutHasError:t.hasError(),checkoutOrderId:t.getOrderId(),checkoutOrderNotes:t.getOrderNotes(),checkoutCustomerId:t.getCustomerId()}}));t&&t!==j&&g(t);const{setValidationErrors:T}=Object(s.useDispatch)(i.VALIDATION_STORE_KEY),{dispatchCheckoutEvent:R}=Object(p.a)(),{checkoutNotices:I,paymentNotices:A,expressPaymentNotices:B}=Object(s.useSelect)((e=>{const{getNotices:t}=e("core/notices");return{checkoutNotices:Object.values(d.d).filter((e=>e!==d.d.PAYMENTS&&e!==d.d.EXPRESS_PAYMENTS)).reduce(((e,c)=>[...e,...t(c)]),[]),paymentNotices:t(d.d.PAYMENTS),expressPaymentNotices:t(d.d.EXPRESS_PAYMENTS)}}),[]),[M,D]=Object(r.useReducer)(l.b,{}),L=Object(r.useRef)(M),{onCheckoutValidation:F,onCheckoutSuccess:V,onCheckoutFail:$}=(e=>Object(r.useMemo)((()=>({onCheckoutSuccess:Object(u.a)("checkout_success",e),onCheckoutFail:Object(u.a)("checkout_fail",e),onCheckoutValidation:Object(u.a)("checkout_validation",e)})),[e]))(D);Object(r.useEffect)((()=>{L.current=M}),[M]);const Y=Object(r.useMemo)((()=>function(...e){return a()("onCheckoutBeforeProcessing",{alternative:"onCheckoutValidation",plugin:"WooCommerce Blocks"}),F(...e)}),[F]),U=Object(r.useMemo)((()=>function(...e){return a()("onCheckoutValidationBeforeProcessing",{since:"9.7.0",alternative:"onCheckoutValidation",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8381"}),F(...e)}),[F]),z=Object(r.useMemo)((()=>function(...e){return a()("onCheckoutAfterProcessingWithSuccess",{since:"9.7.0",alternative:"onCheckoutSuccess",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8381"}),V(...e)}),[V]),K=Object(r.useMemo)((()=>function(...e){return a()("onCheckoutAfterProcessingWithError",{since:"9.7.0",alternative:"onCheckoutFail",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8381"}),$(...e)}),[$]);Object(r.useEffect)((()=>{f&&O({observers:L.current,setValidationErrors:T})}),[f,T,O]);const H=Object(o.a)(k),q=Object(o.a)(S);Object(r.useEffect)((()=>{k===H&&S===q||C&&h({observers:L.current,notices:{checkoutNotices:I,paymentNotices:A,expressPaymentNotices:B}})}),[k,S,j,P,x,N,C,f,H,q,I,B,A,O,h]);const W={onSubmit:Object(r.useCallback)((()=>{R("submit"),_()}),[R,_]),onCheckoutBeforeProcessing:Y,onCheckoutValidationBeforeProcessing:U,onCheckoutAfterProcessingWithSuccess:z,onCheckoutAfterProcessingWithError:K,onCheckoutSuccess:V,onCheckoutFail:$,onCheckoutValidation:F};return Object(r.createElement)(v.Provider,{value:W},e)}},function(e,t,c){"use strict";c.d(t,"b",(function(){return E})),c.d(t,"a",(function(){return v}));var r=c(0),o=c(6),n=c(8);const a={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},s={INVALID_COUNTRY:"woocommerce_rest_cart_shipping_rates_invalid_country",MISSING_COUNTRY:"woocommerce_rest_cart_shipping_rates_missing_country",INVALID_STATE:"woocommerce_rest_cart_shipping_rates_invalid_state"},i={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:e=>e,shippingErrorTypes:a,onShippingRateSuccess:()=>()=>{},onShippingRateFail:()=>()=>{},onShippingRateSelectSuccess:()=>()=>{},onShippingRateSelectFail:()=>()=>{}},l=(e,{type:t})=>Object.values(a).includes(t)?t:e;var u=c(111),d=c(284);const p="shipping_rates_success",b="shipping_rates_fail",m="shipping_rate_select_success",g="shipping_rate_select_fail",O=e=>({onSuccess:Object(d.a)(p,e),onFail:Object(d.a)(b,e),onSelectSuccess:Object(d.a)(m,e),onSelectFail:Object(d.a)(g,e)});var h=c(356),_=c(59),j=c(141);const{NONE:k,INVALID_ADDRESS:f,UNKNOWN:y}=a,w=Object(r.createContext)(i),E=()=>Object(r.useContext)(w),v=({children:e})=>{const{__internalIncrementCalculating:t,__internalDecrementCalculating:c}=Object(o.useDispatch)(n.CHECKOUT_STORE_KEY),{shippingRates:i,isLoadingRates:d,cartErrors:E}=Object(_.a)(),{selectedRates:v,isSelectingRate:C}=Object(j.a)(),[S,P]=Object(r.useReducer)(l,k),[N,x]=Object(r.useReducer)(u.b,{}),T=Object(r.useRef)(N),R=Object(r.useMemo)((()=>({onShippingRateSuccess:O(x).onSuccess,onShippingRateFail:O(x).onFail,onShippingRateSelectSuccess:O(x).onSelectSuccess,onShippingRateSelectFail:O(x).onSelectFail})),[x]);Object(r.useEffect)((()=>{T.current=N}),[N]),Object(r.useEffect)((()=>{d?t():c()}),[d,t,c]),Object(r.useEffect)((()=>{C?t():c()}),[t,c,C]),Object(r.useEffect)((()=>{E.length>0&&E.some((e=>!(!e.code||!Object.values(s).includes(e.code))))?P({type:f}):P({type:k})}),[E]);const I=Object(r.useMemo)((()=>({isPristine:S===k,isValid:S===k,hasInvalidAddress:S===f,hasError:S===y||S===f})),[S]);Object(r.useEffect)((()=>{d||0!==i.length&&!I.hasError||Object(h.a)(T.current,b,{hasInvalidAddress:I.hasInvalidAddress,hasError:I.hasError})}),[i,d,I.hasError,I.hasInvalidAddress]),Object(r.useEffect)((()=>{!d&&i.length>0&&!I.hasError&&Object(h.a)(T.current,p,i)}),[i,d,I.hasError]),Object(r.useEffect)((()=>{C||(I.hasError?Object(h.a)(T.current,g,{hasError:I.hasError,hasInvalidAddress:I.hasInvalidAddress}):Object(h.a)(T.current,m,v.current))}),[v,C,I.hasError,I.hasInvalidAddress]);const A={shippingErrorStatus:I,dispatchErrorStatus:P,shippingErrorTypes:a,...R};return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(w.Provider,{value:A},e))}},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),a=c(1),s=c(70),i=c(636),l=(c(215),c(623)),u=c(614),d=c(635);const p=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},b=e=>{switch(e){case"success":return l.a;case"warning":case"info":case"error":return u.a;default:return d.a}};var m=c(71),g=c(46);t.a=({className:e,status:t="default",children:c,spokenMessage:o=c,onRemove:l=(()=>{}),isDismissible:u=!0,politeness:d=p(t),summary:O})=>(((e,t)=>{const c="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((()=>{c&&Object(g.speak)(c,t)}),[c,t])})(o,d),Object(r.createElement)("div",{className:n()(e,"wc-block-components-notice-banner","is-"+t,{"is-dismissible":u})},Object(r.createElement)(s.a,{icon:b(t)}),Object(r.createElement)("div",{className:"wc-block-components-notice-banner__content"},O&&Object(r.createElement)("p",{className:"wc-block-components-notice-banner__summary"},O),c),!!u&&Object(r.createElement)(m.a,{className:"wc-block-components-notice-banner__dismiss",icon:i.a,label:Object(a.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof(null==e?void 0:e.preventDefault)&&e.preventDefault&&e.preventDefault(),l()},showTooltip:!1})))},,,,function(e,t){e.exports=window.wp.styleEngine},function(e,t,c){"use strict";var r=c(0),o=c(71),n=c(5);t.a=({onChange:e,placeholder:t,value:c,...a})=>Object(r.createElement)(o.a,{...a},Object(r.createElement)(n.RichText,{multiline:!1,allowedFormats:[],value:c,placeholder:t,onChange:e}))},,,,function(e,t,c){"use strict";var r=c(0),o=c(51),n=c(283),a=c(104);t.a=({source:e,maxLength:t=15,countType:c="words",className:s="",style:i={}})=>{const l=Object(r.useMemo)((()=>((e,t=15,c="words")=>{const r=Object(o.autop)(e);if(Object(a.count)(r,c)<=t)return r;const s=(e=>{const t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)})(r);return Object(a.count)(s,c)<=t?s:"words"===c?Object(n.b)(s,t):Object(n.a)(s,t,"characters_including_spaces"===c)})(e,t,c)),[e,t,c]);return Object(r.createElement)(r.RawHTML,{style:i,className:s},l)}},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),a=c(158);t.a=({checked:e,name:t,onChange:c,option:o,disabled:s=!1})=>{const{value:i,label:l,description:u,secondaryLabel:d,secondaryDescription:p}=o;return Object(r.createElement)("label",{className:n()("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":e}),htmlFor:`${t}-${i}`},Object(r.createElement)("input",{id:`${t}-${i}`,className:"wc-block-components-radio-control__input",type:"radio",name:t,value:i,onChange:e=>c(e.target.value),checked:e,"aria-describedby":n()({[`${t}-${i}__label`]:l,[`${t}-${i}__secondary-label`]:d,[`${t}-${i}__description`]:u,[`${t}-${i}__secondary-description`]:p}),disabled:s}),Object(r.createElement)(a.a,{id:`${t}-${i}`,label:l,secondaryLabel:d,description:u,secondaryDescription:p}))}},,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return l})),c.d(t,"c",(function(){return u})),c.d(t,"b",(function(){return d}));var r=c(0),o=c(1),n=c(70),a=c(275),s=c(211);c(192);const i=({text:e,title:t=Object(o.__)("Feedback?","woocommerce"),url:c="https://ideas.woocommerce.com/forums/133476-woocommerce?category_id=384565"})=>{const[i,l]=Object(r.useState)(!1);return Object(r.useEffect)((()=>{l(!0)}),[]),Object(r.createElement)(r.Fragment,null,i&&Object(r.createElement)("div",{className:"wc-block-feedback-prompt"},Object(r.createElement)(n.a,{icon:a.a}),Object(r.createElement)("h2",{className:"wc-block-feedback-prompt__title"},t),Object(r.createElement)("p",{className:"wc-block-feedback-prompt__text"},e),Object(r.createElement)("a",{href:c,className:"wc-block-feedback-prompt__link",rel:"noreferrer noopener",target:"_blank"},Object(o.__)("Give us your feedback.","woocommerce"),Object(r.createElement)(n.a,{icon:s.a,size:16}))))},l=()=>Object(r.createElement)(i,{text:Object(o.__)("We are currently working on improving our cart and checkout blocks to provide merchants with the tools and customization options they need.","woocommerce"),url:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/new?template=--cart-checkout-feedback.md"}),u=()=>Object(r.createElement)(i,{text:Object(o.__)("Thanks for trying out the Products block! Help us make it better by sharing your feedback.","woocommerce"),title:Object(o.__)("Share your feedback!","woocommerce"),url:"https://airtable.com/shrFX5FAqmCY6hVYI"}),d=()=>Object(r.createElement)(i,{text:Object(o.__)("Thanks for trying out the Product Collection block! Help us make it better by sharing your feedback.","woocommerce"),title:Object(o.__)("Share your feedback!","woocommerce"),url:"https://airtable.com/shrqsMSDPvAKoY99u"})},function(e,t,c){"use strict";c.d(t,"a",(function(){return b}));var r=c(8),o=c(6),n=c(21),a=c(0),s=c(197),i=c(334),l=c(25),u=c.n(l),d=c(181),p=c(97);const b=()=>{const{shippingRates:e,needsShipping:t,hasCalculatedShipping:c,isLoadingRates:l,isCollectable:b,isSelectingRate:m}=Object(o.useSelect)((e=>{const t=!!e("core/editor"),c=e(r.CART_STORE_KEY),o=t?d.a.shipping_rates:c.getShippingRates();return{shippingRates:o,needsShipping:t?d.a.needs_shipping:c.getNeedsShipping(),hasCalculatedShipping:t?d.a.has_calculated_shipping:c.getHasCalculatedShipping(),isLoadingRates:!t&&c.isCustomerDataUpdating(),isCollectable:o.every((({shipping_rates:e})=>e.find((({method_id:e})=>Object(s.c)(e))))),isSelectingRate:!t&&c.isShippingRateBeingSelected()}})),g=Object(a.useRef)({});Object(a.useEffect)((()=>{const t=Object(i.a)(e);Object(n.b)(t)&&!u()(g.current,t)&&(g.current=t)}),[e]);const{selectShippingRate:O}=Object(o.useDispatch)(r.CART_STORE_KEY),h=Object(s.c)(Object.values(g.current).map((e=>e.split(":")[0]))),{dispatchCheckoutEvent:_}=Object(p.a)(),j=Object(a.useCallback)(((e,t)=>{let c;void 0!==e&&(c=Object(s.c)(e.split(":")[0])?O(e,null):O(e,t),c.then((()=>{_("set-selected-shipping-rate",{shippingRateId:e})})).catch((e=>{Object(r.processErrorResponse)(e)})))}),[O,_]);return{isSelectingRate:m,selectedRates:g.current,selectShippingRate:j,shippingRates:e,needsShipping:t,hasCalculatedShipping:c,isLoadingRates:l,isCollectable:b,hasSelectedLocalPickup:h}}},,,,,function(e,t,c){"use strict";var r=c(18),o=c.n(r),n=c(0),a=c(1),s=c(17),i=({imageUrl:e=`${s.n}/block-error.svg`,header:t=Object(a.__)("Oops!","woocommerce"),text:c=Object(a.__)("There was an error loading the content.","woocommerce"),errorMessage:r,errorMessagePrefix:o=Object(a.__)("Error:","woocommerce"),button:i,showErrorBlock:l=!0})=>l?Object(n.createElement)("div",{className:"wc-block-error wc-block-components-error"},e&&Object(n.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:e,alt:""}),Object(n.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},t&&Object(n.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},t),c&&Object(n.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},c),r&&Object(n.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},o?o+" ":"",r),i&&Object(n.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},i))):null;c(232);class l extends n.Component{constructor(...e){super(...e),o()(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:Object(n.createElement)(n.Fragment,null,Object(n.createElement)("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}render(){const{header:e,imageUrl:t,showErrorMessage:c=!0,showErrorBlock:r=!0,text:o,errorMessagePrefix:a,renderError:s,button:l}=this.props,{errorMessage:u,hasError:d}=this.state;return d?"function"==typeof s?s({errorMessage:u}):Object(n.createElement)(i,{showErrorBlock:r,errorMessage:c?u:null,header:e,imageUrl:t,text:o,errorMessagePrefix:a,button:l}):this.props.children}}t.a=l},,function(e,t,c){"use strict";c.d(t,"b",(function(){return d})),c.d(t,"a",(function(){return p}));var r=c(0),o=c(6),n=c(8),a=c(37),s=c.n(a),i=c(111),l=c(284);const u=Object(r.createContext)({onPaymentProcessing:()=>()=>()=>{},onPaymentSetup:()=>()=>()=>{}}),d=()=>Object(r.useContext)(u),p=({children:e})=>{const{isProcessing:t,isIdle:c,isCalculating:a,hasError:d}=Object(o.useSelect)((e=>{const t=e(n.CHECKOUT_STORE_KEY);return{isProcessing:t.isProcessing(),isIdle:t.isIdle(),hasError:t.hasError(),isCalculating:t.isCalculating()}})),{isPaymentReady:p}=Object(o.useSelect)((e=>{const t=e(n.PAYMENT_STORE_KEY);return{isPaymentProcessing:t.isPaymentProcessing(),isPaymentReady:t.isPaymentReady()}})),{setValidationErrors:b}=Object(o.useDispatch)(n.VALIDATION_STORE_KEY),[m,g]=Object(r.useReducer)(i.b,{}),{onPaymentSetup:O}=(e=>Object(r.useMemo)((()=>({onPaymentSetup:Object(l.a)("payment_setup",e)})),[e]))(g),h=Object(r.useRef)(m);Object(r.useEffect)((()=>{h.current=m}),[m]);const{__internalSetPaymentProcessing:_,__internalSetPaymentIdle:j,__internalEmitPaymentProcessingEvent:k}=Object(o.useDispatch)(n.PAYMENT_STORE_KEY);Object(r.useEffect)((()=>{!t||d||a||(_(),k(h.current,b))}),[t,d,a,_,k,b]),Object(r.useEffect)((()=>{c&&!p&&j()}),[c,p,j]),Object(r.useEffect)((()=>{d&&p&&j()}),[d,p,j]);const f={onPaymentProcessing:Object(r.useMemo)((()=>function(...e){return s()("onPaymentProcessing",{alternative:"onPaymentSetup",plugin:"WooCommerce Blocks"}),O(...e)}),[O]),onPaymentSetup:O};return Object(r.createElement)(u.Provider,{value:f},e)}},function(e,t,c){"use strict";var r=c(0),o=c(10),n=c(3);t.a=({image:e={},fallbackAlt:t=""})=>{const c=e.thumbnail?{src:e.thumbnail,alt:Object(o.decodeEntities)(e.alt)||t||"Product Image"}:{src:n.PLACEHOLDER_IMG_SRC,alt:""};return Object(r.createElement)("img",{...c,alt:c.alt})}},,,,,function(e,t){},,function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return d}));var r=c(0),o=c(1),n=c(4),a=c.n(n),s=c(29),i=c(24),l=c(86),u=c(48);c(276);const d=e=>{const{className:t,align:c}=e,n=Object(l.a)(e),{parentClassName:u}=Object(i.useInnerBlockLayoutContext)(),{product:d}=Object(i.useProductDataContext)();if(!d.id||!d.on_sale)return null;const p="string"==typeof c?`wc-block-components-product-sale-badge--align-${c}`:"";return Object(r.createElement)("div",{className:a()("wc-block-components-product-sale-badge",t,p,{[`${u}__product-onsale`]:u},n.className),style:n.style},Object(r.createElement)(s.a,{label:Object(o.__)("Sale","woocommerce"),screenReaderLabel:Object(o.__)("Product on sale","woocommerce")}))};t.default=Object(u.withProductDataContext)(d)},,function(e,t,c){"use strict";var r=c(0);t.a=({label:e,secondaryLabel:t,description:c,secondaryDescription:o,id:n})=>Object(r.createElement)("div",{className:"wc-block-components-radio-control__option-layout"},Object(r.createElement)("div",{className:"wc-block-components-radio-control__label-group"},e&&Object(r.createElement)("span",{id:n&&`${n}__label`,className:"wc-block-components-radio-control__label"},e),t&&Object(r.createElement)("span",{id:n&&`${n}__secondary-label`,className:"wc-block-components-radio-control__secondary-label"},t)),(c||o)&&Object(r.createElement)("div",{className:"wc-block-components-radio-control__description-group"},c&&Object(r.createElement)("span",{id:n&&`${n}__description`,className:"wc-block-components-radio-control__description"},c),o&&Object(r.createElement)("span",{id:n&&`${n}__secondary-description`,className:"wc-block-components-radio-control__secondary-description"},o)))},,function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),a=c(11),s=c(133);c(305);const i=({className:e="",id:t,selected:c="",onChange:o,options:l=[],disabled:u=!1})=>{const d=Object(a.useInstanceId)(i),p=t||d;return l.length?Object(r.createElement)("div",{className:n()("wc-block-components-radio-control",e)},l.map((e=>Object(r.createElement)(s.a,{key:`${p}-${e.value}`,name:`radio-control-${p}`,checked:e.value===c,option:e,onChange:t=>{o(t),"function"==typeof e.onChange&&e.onChange(t)},disabled:u})))):null};t.a=i},,function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),a=c(1),s=c(10),i=c(13),l=c(29),u=c(141),d=c(463),p=c(160),b=c(158),m=c(103),g=c(22),O=c(40),h=c(3);const _=e=>{const t=Object(h.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:Object(s.decodeEntities)(e.name),value:e.rate_id,description:Object(r.createElement)(r.Fragment,null,Number.isFinite(t)&&Object(r.createElement)(O.a,{currency:Object(g.getCurrencyFromPriceResponse)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,Object(s.decodeEntities)(e.delivery_time))}};var j=({className:e="",noResultsMessage:t,onSelectRate:c,rates:o,renderOption:n=_,selectedRate:a,disabled:s=!1})=>{const i=(null==a?void 0:a.rate_id)||"",l=Object(m.a)(i),[u,d]=Object(r.useState)((()=>{var e;return i||(null===(e=o[0])||void 0===e?void 0:e.rate_id)}));if(Object(r.useEffect)((()=>{i&&i!==l&&i!==u&&d(i)}),[i,u,l]),Object(r.useEffect)((()=>{u&&c(u)}),[c,u]),0===o.length)return t;if(o.length>1)return Object(r.createElement)(p.a,{className:e,onChange:e=>{d(e),c(e)},disabled:s,selected:u,options:o.map(n)});const{label:g,secondaryLabel:O,description:h,secondaryDescription:j}=n(o[0]);return Object(r.createElement)(b.a,{label:g,secondaryLabel:O,description:h,secondaryDescription:j})};c(304),t.a=({packageId:e,className:t="",noResultsMessage:c,renderOption:o,packageData:p,collapsible:b,showItems:m})=>{const{selectShippingRate:g,isSelectingRate:O}=Object(u.a)(),h=document.querySelectorAll(".wc-block-components-shipping-rates-control__package").length>1,_=null!=m?m:h,k=null!=b?b:h,f=Object(r.createElement)(r.Fragment,null,(k||_)&&Object(r.createElement)("div",{className:"wc-block-components-shipping-rates-control__package-title",dangerouslySetInnerHTML:{__html:Object(d.a)(p.name)}}),_&&Object(r.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(p.items).map((e=>{const t=Object(s.decodeEntities)(e.name),c=e.quantity;return Object(r.createElement)("li",{key:e.key,className:"wc-block-components-shipping-rates-control__package-item"},Object(r.createElement)(l.a,{label:c>1?`${t} × ${c}`:`${t}`,screenReaderLabel:Object(a.sprintf)(/* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */
Object(a._n)("%1$s (%2$d unit)","%1$s (%2$d units)",c,"woocommerce"),t,c)}))})))),y=Object(r.useCallback)((t=>{g(t,e)}),[e,g]),w={className:t,noResultsMessage:c,rates:p.shipping_rates,onSelectRate:y,selectedRate:p.shipping_rates.find((e=>e.selected)),renderOption:o,disabled:O};return k?Object(r.createElement)(i.Panel,{className:n()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":O}),initialOpen:!1,title:f},Object(r.createElement)(j,{...w})):Object(r.createElement)("div",{className:n()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":O})},f,Object(r.createElement)(j,{...w}))}},,,,,,,,,,function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(93);t.a=()=>Object(r.createElement)(n.a,{className:"wc-block-components-product-backorder-badge"},Object(o.__)("Available on backorder","woocommerce"))},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(93);t.a=({lowStockRemaining:e})=>e?Object(r.createElement)(n.a,{className:"wc-block-components-product-low-stock-badge"},Object(o.sprintf)(/* translators: %d stock amount (number of items in stock for product) */
Object(o.__)("%d left in stock","woocommerce"),e)):null},,,function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o);const a=e=>`wc-block-components-payment-method-icon wc-block-components-payment-method-icon--${e}`;var s=({id:e,src:t=null,alt:c=""})=>t?Object(r.createElement)("img",{className:a(e),src:t,alt:c}):null,i=c(17);const l=[{id:"alipay",alt:"Alipay",src:i.n+"payment-methods/alipay.svg"},{id:"amex",alt:"American Express",src:i.n+"payment-methods/amex.svg"},{id:"bancontact",alt:"Bancontact",src:i.n+"payment-methods/bancontact.svg"},{id:"diners",alt:"Diners Club",src:i.n+"payment-methods/diners.svg"},{id:"discover",alt:"Discover",src:i.n+"payment-methods/discover.svg"},{id:"eps",alt:"EPS",src:i.n+"payment-methods/eps.svg"},{id:"giropay",alt:"Giropay",src:i.n+"payment-methods/giropay.svg"},{id:"ideal",alt:"iDeal",src:i.n+"payment-methods/ideal.svg"},{id:"jcb",alt:"JCB",src:i.n+"payment-methods/jcb.svg"},{id:"laser",alt:"Laser",src:i.n+"payment-methods/laser.svg"},{id:"maestro",alt:"Maestro",src:i.n+"payment-methods/maestro.svg"},{id:"mastercard",alt:"Mastercard",src:i.n+"payment-methods/mastercard.svg"},{id:"multibanco",alt:"Multibanco",src:i.n+"payment-methods/multibanco.svg"},{id:"p24",alt:"Przelewy24",src:i.n+"payment-methods/p24.svg"},{id:"sepa",alt:"Sepa",src:i.n+"payment-methods/sepa.svg"},{id:"sofort",alt:"Sofort",src:i.n+"payment-methods/sofort.svg"},{id:"unionpay",alt:"Union Pay",src:i.n+"payment-methods/unionpay.svg"},{id:"visa",alt:"Visa",src:i.n+"payment-methods/visa.svg"},{id:"wechat",alt:"WeChat",src:i.n+"payment-methods/wechat.svg"}];var u=c(113);c(229),t.a=({icons:e=[],align:t="center",className:c})=>{const o=(e=>{const t={};return e.forEach((e=>{let c={};"string"==typeof e&&(c={id:e,alt:e,src:null}),"object"==typeof e&&(c={id:e.id||"",alt:e.alt||"",src:e.src||null}),c.id&&Object(u.a)(c.id)&&!t[c.id]&&(t[c.id]=c)})),Object.values(t)})(e);if(0===o.length)return null;const a=n()("wc-block-components-payment-method-icons",{"wc-block-components-payment-method-icons--align-left":"left"===t,"wc-block-components-payment-method-icons--align-right":"right"===t},c);return Object(r.createElement)("div",{className:a},o.map((e=>{const t={...e,...(c=e.id,l.find((e=>e.id===c))||{})};var c;return Object(r.createElement)(s,{key:"payment-method-icon-"+e.id,...t})})))}},function(e,t,c){"use strict";var r=c(0),o=c(654),n=c(10);c(228);var a=({details:e=[]})=>Array.isArray(e)?0===(e=e.filter((e=>!e.hidden))).length?null:Object(r.createElement)("ul",{className:"wc-block-components-product-details"},e.map((e=>{const t=(null==e?void 0:e.key)||e.name||"",c=(null==e?void 0:e.className)||(t?`wc-block-components-product-details__${Object(o.a)(t)}`:"");return Object(r.createElement)("li",{key:t+(e.display||e.value),className:c},t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)("span",{className:"wc-block-components-product-details__name"},Object(n.decodeEntities)(t),":")," "),Object(r.createElement)("span",{className:"wc-block-components-product-details__value"},Object(n.decodeEntities)(e.display||e.value)))}))):null,s=c(132),i=c(17),l=({className:e,shortDescription:t="",fullDescription:c=""})=>{const o=t||c;return o?Object(r.createElement)(s.a,{className:e,source:o,maxLength:15,countType:i.p.wordCountType||"words"}):null};c(227),t.a=({shortDescription:e="",fullDescription:t="",itemData:c=[],variation:o=[]})=>Object(r.createElement)("div",{className:"wc-block-components-product-metadata"},Object(r.createElement)(l,{className:"wc-block-components-product-metadata__description",shortDescription:e,fullDescription:t}),Object(r.createElement)(a,{details:c}),Object(r.createElement)(a,{details:o.map((({attribute:e="",value:t})=>({key:e,value:t})))}))},,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var r=c(1),o=c(17),n=c(3);const a=[{destination:{address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},package_id:0,name:Object(r.__)("Shipping","woocommerce"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:Object(r._x)("Beanie with Logo","example product in Cart Block","woocommerce"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:Object(r._x)("Beanie","example product in Cart Block","woocommerce"),quantity:1}],shipping_rates:[{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:Object(r.__)("Flat rate shipping","woocommerce"),description:"",delivery_time:"",price:"500",taxes:"0",rate_id:"flat_rate:0",instance_id:0,meta_data:[],method_id:"flat_rate",selected:!0},{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:Object(r.__)("Free shipping","woocommerce"),description:"",delivery_time:"",price:"0",taxes:"0",rate_id:"free_shipping:1",instance_id:0,meta_data:[],method_id:"flat_rate",selected:!1},{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:Object(r.__)("Local pickup","woocommerce"),description:"",delivery_time:"",price:"0",taxes:"0",rate_id:"pickup_location:1",instance_id:1,meta_data:[{key:"pickup_location",value:"New York"},{key:"pickup_address",value:"123 Easy Street, New York, 12345"}],method_id:"pickup_location",selected:!1},{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",name:Object(r.__)("Local pickup","woocommerce"),description:"",delivery_time:"",price:"0",taxes:"0",rate_id:"pickup_location:2",instance_id:1,meta_data:[{key:"pickup_location",value:"Los Angeles"},{key:"pickup_address",value:"123 Easy Street, Los Angeles, California, 90210"}],method_id:"pickup_location",selected:!1}]}],s=Object(n.getSetting)("displayCartPricesIncludingTax",!1),i={coupons:[],shipping_rates:Object(n.getSetting)("shippingMethodsExist",!1)||Object(n.getSetting)("localPickupEnabled",!1)?a:[],items:[{key:"1",id:1,quantity:2,catalog_visibility:"visible",name:Object(r.__)("Beanie","woocommerce"),summary:Object(r.__)("Beanie","woocommerce"),short_description:Object(r.__)("Warm hat for winter","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-beanie",permalink:"https://example.org",low_stock_remaining:2,backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,quantity_limits:{minimum:1,maximum:99,multiple_of:1,editable:!0},images:[{id:10,src:o.n+"previews/beanie.jpg",thumbnail:o.n+"previews/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(r.__)("Color","woocommerce"),value:Object(r.__)("Yellow","woocommerce")},{attribute:Object(r.__)("Size","woocommerce"),value:Object(r.__)("Small","woocommerce")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:s?"12000":"10000",regular_price:s?"12000":"10000",sale_price:s?"12000":"10000",price_range:null,raw_prices:{precision:6,price:s?"12000000":"10000000",regular_price:s?"12000000":"10000000",sale_price:s?"12000000":"10000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"2000",line_subtotal_tax:"400",line_total:"2000",line_total_tax:"400"},extensions:{},item_data:[]},{key:"2",id:2,quantity:1,catalog_visibility:"visible",name:Object(r.__)("Cap","woocommerce"),summary:Object(r.__)("Cap","woocommerce"),short_description:Object(r.__)("Lightweight baseball cap","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-cap",low_stock_remaining:null,permalink:"https://example.org",backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,quantity_limits:{minimum:1,maximum:99,multiple_of:1,editable:!0},images:[{id:11,src:o.n+"previews/cap.jpg",thumbnail:o.n+"previews/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:Object(r.__)("Color","woocommerce"),value:Object(r.__)("Orange","woocommerce")}],prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:s?"2400":"2000",regular_price:s?"2400":"2000",sale_price:s?"2400":"2000",price_range:null,raw_prices:{precision:6,price:s?"24000000":"20000000",regular_price:s?"24000000":"20000000",sale_price:s?"24000000":"20000000"}},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",line_subtotal:"2000",line_subtotal_tax:"400",line_total:"2000",line_total_tax:"400"},extensions:{},item_data:[]}],cross_sells:[{id:1,name:Object(r.__)("Polo","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-polo",short_description:Object(r.__)("Polo","woocommerce"),description:Object(r.__)("Polo","woocommerce"),on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:s?"24000":"20000",regular_price:s?"24000":"20000",sale_price:s?"12000":"10000",price_range:null},price_html:"",average_rating:"4.5",review_count:2,images:[{id:17,src:o.n+"previews/polo.jpg",thumbnail:o.n+"previews/polo.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:2,name:Object(r.__)("Long Sleeve Tee","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-long-sleeve-tee",short_description:Object(r.__)("Long Sleeve Tee","woocommerce"),description:Object(r.__)("Long Sleeve Tee","woocommerce"),on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:s?"30000":"25000",regular_price:s?"30000":"25000",sale_price:s?"30000":"25000",price_range:null},price_html:"",average_rating:"4",review_count:2,images:[{id:17,src:o.n+"previews/long-sleeve-tee.jpg",thumbnail:o.n+"previews/long-sleeve-tee.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:3,name:Object(r.__)("Hoodie with Zipper","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-zipper",short_description:Object(r.__)("Hoodie with Zipper","woocommerce"),description:Object(r.__)("Hoodie with Zipper","woocommerce"),on_sale:!0,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:s?"15000":"12500",regular_price:s?"30000":"25000",sale_price:s?"15000":"12500",price_range:null},price_html:"",average_rating:"1",review_count:2,images:[{id:17,src:o.n+"previews/hoodie-with-zipper.jpg",thumbnail:o.n+"previews/hoodie-with-zipper.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:4,name:Object(r.__)("Hoodie with Logo","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-logo",short_description:Object(r.__)("Polo","woocommerce"),description:Object(r.__)("Polo","woocommerce"),on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:s?"4500":"4250",regular_price:s?"4500":"4250",sale_price:s?"4500":"4250",price_range:null},price_html:"",average_rating:"5",review_count:2,images:[{id:17,src:o.n+"previews/hoodie-with-logo.jpg",thumbnail:o.n+"previews/hoodie-with-logo.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:5,name:Object(r.__)("Hoodie with Pocket","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-pocket",short_description:Object(r.__)("Hoodie with Pocket","woocommerce"),description:Object(r.__)("Hoodie with Pocket","woocommerce"),on_sale:!0,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:s?"3500":"3250",regular_price:s?"4500":"4250",sale_price:s?"3500":"3250",price_range:null},price_html:"",average_rating:"3.75",review_count:4,images:[{id:17,src:o.n+"previews/hoodie-with-pocket.jpg",thumbnail:o.n+"previews/hoodie-with-pocket.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:6,name:Object(r.__)("T-Shirt","woocommerce"),parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-t-shirt",short_description:Object(r.__)("T-Shirt","woocommerce"),description:Object(r.__)("T-Shirt","woocommerce"),on_sale:!1,prices:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",price:s?"1800":"1500",regular_price:s?"1800":"1500",sale_price:s?"1800":"1500",price_range:null},price_html:"",average_rating:"3",review_count:2,images:[{id:17,src:o.n+"previews/tshirt.jpg",thumbnail:o.n+"previews/tshirt.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}}],fees:[{id:"fee",name:Object(r.__)("Fee","woocommerce"),totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total:"100",total_tax:"20"}}],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:Object(n.getSetting)("shippingEnabled",!0),has_calculated_shipping:!0,shipping_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},billing_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},totals:{currency_code:"USD",currency_symbol:"$",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"$",currency_suffix:"",total_items:"4000",total_items_tax:"800",total_fees:"100",total_fees_tax:"20",total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_tax:"820",total_price:"4920",tax_lines:[{name:Object(r.__)("Sales tax","woocommerce"),rate:"20%",price:"820"}]},errors:[],payment_methods:["cod","bacs","cheque"],payment_requirements:["products"],extensions:{}}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,function(e,t){},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(3),a=c(13),s=c(68);t.a=({isEditor:e,children:t})=>{const[c]=Object(r.useState)(""),[i]=Object(r.useState)(!1);if(i){let t=Object(o.__)("We are experiencing difficulties with this payment method. Please contact us for assistance.","woocommerce");(e||n.CURRENT_USER_IS_ADMIN)&&(t=c||Object(o.__)("There was an error with this payment method. Please verify it's configured correctly.","woocommerce"));const i=[{id:"0",content:t,isDismissible:!1,status:"error"}];return Object(r.createElement)(a.StoreNoticesContainer,{additionalNotices:i,context:s.d.PAYMENTS})}return Object(r.createElement)(r.Fragment,null,t)}},,function(e,t){e.exports=window.wp.editor},,function(e,t,c){"use strict";c.d(t,"a",(function(){return n})),c.d(t,"d",(function(){return s})),c.d(t,"c",(function(){return i})),c.d(t,"b",(function(){return l}));var r=c(3),o=c(17);const n=e=>e.length,a=Object(r.getSetting)("collectableMethodIds",[]),s=e=>a.includes(e.method_id),i=e=>!!o.g&&(Array.isArray(e)?!!e.find((e=>a.includes(e))):a.includes(e)),l=e=>e.reduce((function(e,t){return e+t.shipping_rates.length}),0)},,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t,c){"use strict";c.d(t,"a",(function(){return b}));var r=c(0),o=c(4),n=c.n(o),a=c(24),s=c(83),i=c(48),l=c(119),u=c(97),d=c(86);c(277);const p=({children:e,headingLevel:t,elementType:c=`h${t}`,...o})=>Object(r.createElement)(c,{...o},e),b=e=>{const{className:t,headingLevel:c=2,showProductLink:o=!0,linkTarget:i,align:b}=e,m=Object(d.a)(e),{parentClassName:g}=Object(a.useInnerBlockLayoutContext)(),{product:O}=Object(a.useProductDataContext)(),{dispatchStoreEvent:h}=Object(u.a)();return O.id?Object(r.createElement)(p,{headingLevel:c,className:n()(t,m.className,"wc-block-components-product-title",{[`${g}__product-title`]:g,[`wc-block-components-product-title--align-${b}`]:b&&Object(s.b)()}),style:Object(s.b)()?m.style:{}},Object(r.createElement)(l.a,{disabled:!o,name:O.name,permalink:O.permalink,target:i,onClick:()=>{h("product-view-link",{product:O})}})):Object(r.createElement)(p,{headingLevel:c,className:n()(t,m.className,"wc-block-components-product-title",{[`${g}__product-title`]:g,[`wc-block-components-product-title--align-${b}`]:b&&Object(s.b)()}),style:Object(s.b)()?m.style:{}})};t.b=Object(i.withProductDataContext)(b)},,function(e,t,c){"use strict";c.d(t,"a",(function(){return O}));var r=c(0),o=c(1),n=c(4),a=c.n(n),s=c(3),i=c(24),l=c(86),u=c(48),d=c(97),p=c(156),b=(c(278),c(60));const m=e=>Object(r.createElement)("img",{...e,src:s.PLACEHOLDER_IMG_SRC,alt:"",width:void 0,height:void 0}),g=({image:e,loaded:t,showFullSize:c,fallbackAlt:o,width:n,scale:a,height:s})=>{const{thumbnail:i,src:l,srcset:u,sizes:d,alt:p}=e||{},b={alt:p||o,hidden:!t,src:i,...c&&{src:l,srcSet:u,sizes:d}},g={height:s,width:n,objectFit:a};return Object(r.createElement)(r.Fragment,null,b.src&&Object(r.createElement)("img",{style:g,"data-testid":"product-image",...b}),!e&&Object(r.createElement)(m,{style:g}))},O=e=>{const{className:t,imageSizing:c=b.a.SINGLE,showProductLink:n=!0,showSaleBadge:s,saleBadgeAlign:u="right",height:O,width:h,scale:_,...j}=e,k=Object(l.a)(e),{parentClassName:f}=Object(i.useInnerBlockLayoutContext)(),{product:y,isLoading:w}=Object(i.useProductDataContext)(),{dispatchStoreEvent:E}=Object(d.a)();if(!y.id)return Object(r.createElement)("div",{className:a()(t,"wc-block-components-product-image",{[`${f}__product-image`]:f},k.className)},Object(r.createElement)(m,null));const v=!!y.images.length,C=v?y.images[0]:null,S=n?"a":r.Fragment,P=Object(o.sprintf)(/* translators: %s is referring to the product name */
Object(o.__)("Link to %s","woocommerce"),y.name),N={href:y.permalink,...!v&&{"aria-label":P},onClick:()=>{E("product-view-link",{product:y})}};return Object(r.createElement)("div",{className:a()(t,"wc-block-components-product-image",{[`${f}__product-image`]:f},k.className)},Object(r.createElement)(S,{...n&&N},!!s&&Object(r.createElement)(p.default,{align:u,...j}),Object(r.createElement)(g,{fallbackAlt:y.name,image:C,loaded:!w,showFullSize:c!==b.a.THUMBNAIL,width:h,height:O,scale:_})))};t.b=Object(u.withProductDataContext)(O)},,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));var r=c(21);const o=e=>{if(Object(r.b)(e)){const t=e.getEditedPostType();return"wp_template"===t||"wp_template_part"===t}return!1}},function(e,t){},,function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return d}));var r=c(0),o=c(4),n=c.n(o),a=c(92),s=c(22),i=c(24),l=c(86),u=c(48);const d=e=>{var t,c;const{className:o,textAlign:u,isDescendentOfSingleProductTemplate:d}=e,p=Object(l.a)(e),{parentName:b,parentClassName:m}=Object(i.useInnerBlockLayoutContext)(),{product:g}=Object(i.useProductDataContext)(),O="woocommerce/all-products"===b,h=n()("wc-block-components-product-price",o,p.className,{[`${m}__product-price`]:m});if(!g.id&&!d){const e=Object(r.createElement)(a.a,{align:u,className:h});return O?Object(r.createElement)("div",{className:"wp-block-woocommerce-product-price"},e):e}const _=g.prices,j=d?Object(s.getCurrencyFromPriceResponse)():Object(s.getCurrencyFromPriceResponse)(_),k="5000",f=_.price!==_.regular_price,y=n()({[`${m}__product-price__value`]:m,[`${m}__product-price__value--on-sale`]:f}),w=Object(r.createElement)(a.a,{align:u,className:h,style:p.style,regularPriceStyle:p.style,priceStyle:p.style,priceClassName:y,currency:j,price:d?k:_.price,minPrice:null==_||null===(t=_.price_range)||void 0===t?void 0:t.min_amount,maxPrice:null==_||null===(c=_.price_range)||void 0===c?void 0:c.max_amount,regularPrice:d?k:_.regular_price,regularPriceClassName:n()({[`${m}__product-price__regular`]:m})});return O?Object(r.createElement)("div",{className:"wp-block-woocommerce-product-price"},w):w};t.default=e=>e.isDescendentOfSingleProductTemplate?Object(r.createElement)(d,{...e}):Object(u.withProductDataContext)(d)(e)},function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return g}));var r=c(0),o=c(1),n=c(4),a=c.n(n),s=c(24),i=c(86),l=c(48),u=c(84);c(279);const d=e=>({width:e/5*100+"%"}),p=({parentClassName:e})=>{const t=d(0);return Object(r.createElement)("div",{className:a()("wc-block-components-product-rating__norating-container",`${e}-product-rating__norating-container`)},Object(r.createElement)("div",{className:"wc-block-components-product-rating__norating",role:"img"},Object(r.createElement)("span",{style:t})),Object(r.createElement)("span",null,Object(o.__)("No Reviews","woocommerce")))},b=e=>{const{rating:t,reviews:c,parentClassName:n}=e,s=d(t),i=Object(o.sprintf)(/* translators: %f is referring to the average rating value */
Object(o.__)("Rated %f out of 5","woocommerce"),t),l={__html:Object(o.sprintf)(/* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */
Object(o._n)("Rated %1$s out of 5 based on %2$s customer rating","Rated %1$s out of 5 based on %2$s customer ratings",c,"woocommerce"),Object(o.sprintf)('<strong class="rating">%f</strong>',t),Object(o.sprintf)('<span class="rating">%d</span>',c))};return Object(r.createElement)("div",{className:a()("wc-block-components-product-rating__stars",`${n}__product-rating__stars`),role:"img","aria-label":i},Object(r.createElement)("span",{style:s,dangerouslySetInnerHTML:l}))},m=e=>{const{reviews:t}=e,c=Object(o.sprintf)(/* translators: %s is referring to the total of reviews for a product */
Object(o._n)("(%s customer review)","(%s customer reviews)",t,"woocommerce"),t);return Object(r.createElement)("span",{className:"wc-block-components-product-rating__reviews_count"},c)},g=e=>{const{textAlign:t,isDescendentOfSingleProductBlock:c,shouldDisplayMockedReviewsWhenProductHasNoReviews:o}=e,n=Object(i.a)(e),{parentClassName:l}=Object(s.useInnerBlockLayoutContext)(),{product:d}=Object(s.useProductDataContext)(),g=(e=>{const t=parseFloat(e.average_rating);return Number.isFinite(t)&&t>0?t:0})(d),O=(e=>{const t=Object(u.a)(e.review_count)?e.review_count:parseInt(e.review_count,10);return Number.isFinite(t)&&t>0?t:0})(d),h=a()(n.className,"wc-block-components-product-rating",{[`${l}__product-rating`]:l,[`has-text-align-${t}`]:t}),_=o?Object(r.createElement)(p,{parentClassName:l}):null,j=O?Object(r.createElement)(b,{rating:g,reviews:O,parentClassName:l}):_;if(O||o)return Object(r.createElement)("div",{className:h,style:n.style},Object(r.createElement)("div",{className:"wc-block-components-product-rating__container"},j,O&&c?Object(r.createElement)(m,{reviews:O}):null))};t.default=Object(l.withProductDataContext)(g)},function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return h}));var r=c(0),o=c(4),n=c.n(o),a=c(1),s=c(97),i=c(287),l=c(86),u=c(10),d=c(17),p=c(3),b=c(24),m=c(48);c(280);const g=({product:e,className:t,style:c,textAlign:o})=>{const{id:l,permalink:b,add_to_cart:m,has_options:g,is_purchasable:O,is_in_stock:h}=e,{dispatchStoreEvent:_}=Object(s.a)(),{cartQuantity:j,addingToCart:k,addToCart:f}=Object(i.a)(l),y=Number.isFinite(j)&&j>0,w=!g&&O&&h,E=Object(u.decodeEntities)((null==m?void 0:m.description)||""),v=y?Object(a.sprintf)(/* translators: %s number of products in cart. */
Object(a._n)("%d in cart","%d in cart",j,"woocommerce"),j):Object(u.decodeEntities)((null==m?void 0:m.text)||Object(a.__)("Add to cart","woocommerce")),C=w?"button":"a",S={};return w?S.onClick=async()=>{await f(),_("cart-add-item",{product:e});const{cartRedirectAfterAdd:t}=Object(p.getSetting)("productsSettings");t&&(window.location.href=d.d)}:(S.href=b,S.rel="nofollow",S.onClick=()=>{_("product-view-link",{product:e})}),Object(r.createElement)(C,{...S,"aria-label":E,disabled:k,className:n()(t,"wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button",{loading:k,added:y},{[`has-text-align-${o}`]:o}),style:c},v)},O=({className:e,style:t})=>Object(r.createElement)("button",{className:n()("wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button","wc-block-components-product-button__button--placeholder",e),style:t,disabled:!0}),h=e=>{const{className:t,textAlign:c}=e,o=Object(l.a)(e),{parentClassName:a}=Object(b.useInnerBlockLayoutContext)(),{product:s}=Object(b.useProductDataContext)();return Object(r.createElement)("div",{className:n()(t,"wp-block-button","wc-block-components-product-button",{[`${a}__product-add-to-cart`]:a},{[`has-text-align-${c}`]:c})},s.id?Object(r.createElement)(g,{product:s,style:o.style,className:o.className}):Object(r.createElement)(O,{style:o.style,className:o.className}))};t.default=Object(m.withProductDataContext)(h)},,,function(e,t,c){"use strict";var r=c(0);const o=Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},Object(r.createElement)("path",{stroke:"#1E1E1E",strokeLinejoin:"round",strokeWidth:"1.5",d:"M18.25 12a6.25 6.25 0 1 1-12.5 0 6.25 6.25 0 0 1 12.5 0Z"}),Object(r.createElement)("path",{fill:"#1E1E1E",d:"M10 3h4v3h-4z"}),Object(r.createElement)("rect",{width:"1.5",height:"5",x:"11.25",y:"8",fill:"#1E1E1E",rx:".75"}),Object(r.createElement)("path",{fill:"#1E1E1E",d:"m15.7 4.816 1.66 1.078-1.114 1.718-1.661-1.078z"}));t.a=o},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(268),a=c(347),s=c(95),i=c(37),l=c.n(i),u=c(6),d=c(193),p=c(72);t.a=()=>{const{isEditor:e}=Object(s.b)(),{activePaymentMethod:t,paymentMethodData:c}=Object(u.useSelect)((e=>{const t=e(p.a);return{activePaymentMethod:t.getActivePaymentMethod(),paymentMethodData:t.getPaymentMethodData()}})),{__internalSetActivePaymentMethod:i,__internalSetExpressPaymentStarted:b,__internalSetPaymentIdle:m,__internalSetPaymentError:g,__internalSetPaymentMethodData:O,__internalSetExpressPaymentError:h}=Object(u.useDispatch)(p.a),{paymentMethods:_}=Object(n.a)(),j=Object(a.a)(),k=Object(r.useRef)(t),f=Object(r.useRef)(c),y=Object(r.useCallback)((e=>()=>{k.current=t,f.current=c,b(),i(e)}),[t,c,i,b]),w=Object(r.useCallback)((()=>{m(),i(k.current,f.current)}),[i,m]),E=Object(r.useCallback)((e=>{g(),O(e),h(e),i(k.current,f.current)}),[i,g,O,h]),v=Object(r.useCallback)(((e="")=>{l()("Express Payment Methods should use the provided onError handler instead.",{alternative:"onError",plugin:"woocommerce-gutenberg-products-block",link:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4228"}),e?E(e):h("")}),[h,E]),C=Object.entries(_),S=C.length>0?C.map((([t,c])=>{const o=e?c.edit:c.content;return Object(r.isValidElement)(o)?Object(r.createElement)("li",{key:t,id:`express-payment-method-${t}`},Object(r.cloneElement)(o,{...j,onClick:y(t),onClose:w,onError:E,setExpressPaymentError:v})):null})):Object(r.createElement)("li",{key:"noneRegistered"},Object(o.__)("No registered Payment Methods","woocommerce"));return Object(r.createElement)(d.a,{isEditor:e},Object(r.createElement)("ul",{className:"wc-block-components-express-payment__event-buttons"},S))}},function(e,t,c){"use strict";c.d(t,"a",(function(){return l}));var r=c(1),o=c(6),n=c(8),a=c(10),s=c(13),i=c(59);const l=(e="")=>{const{cartCoupons:t,cartIsLoading:c}=Object(i.a)(),{createErrorNotice:l}=Object(o.useDispatch)("core/notices"),{createNotice:u}=Object(o.useDispatch)("core/notices"),{setValidationErrors:d}=Object(o.useDispatch)(n.VALIDATION_STORE_KEY),{isApplyingCoupon:p,isRemovingCoupon:b}=Object(o.useSelect)((e=>{const t=e(n.CART_STORE_KEY);return{isApplyingCoupon:t.isApplyingCoupon(),isRemovingCoupon:t.isRemovingCoupon()}}),[l,u]),{applyCoupon:m,removeCoupon:g}=Object(o.useDispatch)(n.CART_STORE_KEY);return{appliedCoupons:t,isLoading:c,applyCoupon:t=>m(t).then((()=>(Object(s.applyCheckoutFilter)({filterName:"showApplyCouponNotice",defaultValue:!0,arg:{couponCode:t,context:e}})&&u("info",Object(r.sprintf)(/* translators: %s coupon code. */
Object(r.__)('Coupon code "%s" has been applied to your cart.',"woocommerce"),t),{id:"coupon-form",type:"snackbar",context:e}),Promise.resolve(!0)))).catch((e=>(d({coupon:{message:Object(a.decodeEntities)(e.message),hidden:!1}}),Promise.resolve(!1)))),removeCoupon:t=>g(t).then((()=>(Object(s.applyCheckoutFilter)({filterName:"showRemoveCouponNotice",defaultValue:!0,arg:{couponCode:t,context:e}})&&u("info",Object(r.sprintf)(/* translators: %s coupon code. */
Object(r.__)('Coupon code "%s" has been removed from your cart.',"woocommerce"),t),{id:"coupon-form",type:"snackbar",context:e}),Promise.resolve(!0)))).catch((t=>(l(t.message,{id:"coupon-form",context:e}),Promise.resolve(!1)))),isApplyingCoupon:p,isRemovingCoupon:b}}},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(2),a=c(6),s=c(23);t.a=({setPageId:e,pageId:t,labels:c})=>{const i=Object(a.useSelect)((e=>e("core").getEntityRecords("postType","page",{status:"publish",orderby:"title",order:"asc",per_page:100})),[])||null;return i?Object(r.createElement)(n.PanelBody,{title:c.title},Object(r.createElement)(n.SelectControl,{label:Object(o.__)("Link to","woocommerce"),value:t,options:[{label:c.default,value:0},...i.map((e=>({label:Object(s.a)(e,i),value:parseInt(e.id,10)})))],onChange:t=>e(parseInt(t,10))})):null}},function(e,t){e.exports=window.wp.plugins},,,,,,,,,,,,function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(85),a=c(13),s=c(197),i=c(59),l=c(95),u=c(141),d=c(123),p=c(21),b=c(162),m=c(46);const g=({packages:e,showItems:t,collapsible:c,noResultsMessage:o,renderOption:n})=>e.length?Object(r.createElement)(r.Fragment,null,e.map((({package_id:e,...a})=>Object(r.createElement)(b.a,{key:e,packageId:e,packageData:a,collapsible:c,showItems:t,noResultsMessage:o,renderOption:n})))):null;t.a=({shippingRates:e,isLoadingRates:t,className:c,collapsible:O,showItems:h,noResultsMessage:_,renderOption:j,context:k})=>{Object(r.useEffect)((()=>{var c,r;t||(c=Object(s.a)(e),r=Object(s.b)(e),1===c?Object(m.speak)(Object(o.sprintf)(/* translators: %d number of shipping options found. */
Object(o._n)("%d shipping option was found.","%d shipping options were found.",r,"woocommerce"),r)):Object(m.speak)(Object(o.sprintf)(/* translators: %d number of shipping packages packages. */
Object(o._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",c,"woocommerce"),c)+" "+Object(o.sprintf)(/* translators: %d number of shipping options available. */
Object(o._n)("%d shipping option was found","%d shipping options were found",r,"woocommerce"),r)))}),[t,e]);const{extensions:f,receiveCart:y,...w}=Object(i.a)(),E={className:c,collapsible:O,showItems:h,noResultsMessage:_,renderOption:j,extensions:f,cart:w,components:{ShippingRatesControlPackage:b.a},context:k},{isEditor:v}=Object(l.b)(),{hasSelectedLocalPickup:C,selectedRates:S}=Object(u.a)(),P=Object(p.b)(S)?Object.values(S):[],N=P.every((e=>e===P[0]));return Object(r.createElement)(n.a,{isLoading:t,screenReaderLabel:Object(o.__)("Loading shipping rates…","woocommerce"),showSpinner:!0},C&&"woocommerce/cart"===k&&e.length>1&&!N&&!v&&Object(r.createElement)(d.a,{className:"wc-block-components-notice",isDismissible:!1,status:"warning"},Object(o.__)("Multiple shipments must have the same pickup location","woocommerce")),Object(r.createElement)(a.ExperimentalOrderShippingPackages.Slot,{...E}),Object(r.createElement)(a.ExperimentalOrderShippingPackages,null,Object(r.createElement)(g,{packages:e,noResultsMessage:_,renderOption:j})))}},,,,,,,function(e,t,c){"use strict";var r=c(0),o=c(9);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none"},Object(r.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",d:"M6 3.75h12c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25H6c-.69 0-1.25-.56-1.25-1.25V5c0-.69.56-1.25 1.25-1.25z"}),Object(r.createElement)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.9 7.5A1.1 1.1 0 018 6.4h8a1.1 1.1 0 011.1 1.1v2a1.1 1.1 0 01-1.1 1.1H8a1.1 1.1 0 01-1.1-1.1v-2zm1.2.1v1.8h7.8V7.6H8.1z",clipRule:"evenodd"}),Object(r.createElement)("path",{fill:"currentColor",d:"M8.5 12h1v1h-1v-1zM8.5 14h1v1h-1v-1zM8.5 16h1v1h-1v-1zM11.5 12h1v1h-1v-1zM11.5 14h1v1h-1v-1zM11.5 16h1v1h-1v-1zM14.5 12h1v1h-1v-1zM14.5 14h1v1h-1v-1zM14.5 16h1v1h-1v-1z"}));t.a=n},,,,,,function(e,t,c){"use strict";c.d(t,"b",(function(){return i})),c.d(t,"a",(function(){return l}));var r=c(47),o=c(36),n=c(6),a=c(8);const s=(e=!1)=>{const{paymentMethodsInitialized:t,expressPaymentMethodsInitialized:c,availablePaymentMethods:s,availableExpressPaymentMethods:i}=Object(n.useSelect)((e=>{const t=e(a.PAYMENT_STORE_KEY);return{paymentMethodsInitialized:t.paymentMethodsInitialized(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),availablePaymentMethods:t.getAvailablePaymentMethods()}})),l=Object.values(s).map((({name:e})=>e)),u=Object.values(i).map((({name:e})=>e)),d=Object(o.getPaymentMethods)(),p=Object(o.getExpressPaymentMethods)(),b=Object.keys(d).reduce(((e,t)=>(l.includes(t)&&(e[t]=d[t]),e)),{}),m=Object.keys(p).reduce(((e,t)=>(u.includes(t)&&(e[t]=p[t]),e)),{}),g=Object(r.a)(b),O=Object(r.a)(m);return{paymentMethods:e?O:g,isInitialized:e?c:t}},i=()=>s(!1),l=()=>s(!0)},,,,function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),a=c(1),s=c(70),i=c(611);c(216);var l=({text:e,screenReaderText:t="",element:c="li",className:o="",radius:a="small",children:s=null,...i})=>{const l=c,u=n()(o,"wc-block-components-chip","wc-block-components-chip--radius-"+a),d=Boolean(t&&t!==e);return Object(r.createElement)(l,{className:u,...i},Object(r.createElement)("span",{"aria-hidden":d,className:"wc-block-components-chip__text"},e),d&&Object(r.createElement)("span",{className:"screen-reader-text"},t),s)};t.a=({ariaLabel:e="",className:t="",disabled:c=!1,onRemove:o=(()=>{}),removeOnAnyClick:u=!1,text:d,screenReaderText:p="",...b})=>{const m=u?"span":"button";if(!e){const t=p&&"string"==typeof p?p:d;e="string"!=typeof t?/* translators: Remove chip. */
Object(a.__)("Remove","woocommerce"):Object(a.sprintf)(/* translators: %s text of the chip to remove. */
Object(a.__)('Remove "%s"',"woocommerce"),t)}const g={"aria-label":e,disabled:c,onClick:o,onKeyDown:e=>{"Backspace"!==e.key&&"Delete"!==e.key||o()}},O=u?g:{},h=u?{"aria-hidden":!0}:g;return Object(r.createElement)(l,{...b,...O,className:n()(t,"is-removable"),element:u?"button":b.element,screenReaderText:p,text:d},Object(r.createElement)(m,{className:"wc-block-components-chip__remove",...h},Object(r.createElement)(s.a,{className:"wc-block-components-chip__remove-icon",icon:i.a,size:16})))}},,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,c){"use strict";c.d(t,"b",(function(){return n})),c.d(t,"a",(function(){return a}));const r=window.CustomEvent||null,o=(e,{bubbles:t=!1,cancelable:c=!1,element:o,detail:n={}})=>{if(!r)return;o||(o=document.body);const a=new r(e,{bubbles:t,cancelable:c,detail:n});o.dispatchEvent(a)},n=({preserveCartData:e=!1})=>{o("wc-blocks_added_to_cart",{bubbles:!0,cancelable:!0,detail:{preserveCartData:e}})},a=(e,t,c=!1,r=!1)=>{if("function"!=typeof jQuery)return()=>{};const n=()=>{o(t,{bubbles:c,cancelable:r})};return jQuery(document).on(e,n),()=>jQuery(document).off(e,n)}},function(e,t,c){"use strict";c.d(t,"a",(function(){return s})),c.d(t,"b",(function(){return i})),c.d(t,"c",(function(){return l}));var r=c(107),o=(c(15),c(3)),n=c(10),a=c(17);const s=e=>{const t=Object.keys(o.defaultAddressFields),c=Object(r.a)(t,{},e.country),n=Object.assign({},e);return c.forEach((({key:t="",hidden:c=!1})=>{c&&((e,t)=>e in t)(t,e)&&(n[t]="")})),n},i=e=>{if(0===Object.values(e).length)return null;const t="string"==typeof a.i[e.country]?Object(n.decodeEntities)(a.i[e.country]):"",c="object"==typeof a.j[e.country]&&"string"==typeof a.j[e.country][e.state]?Object(n.decodeEntities)(a.j[e.country][e.state]):e.state,r=[];r.push(e.postcode.toUpperCase()),r.push(e.city),r.push(c),r.push(t);return r.filter(Boolean).join(", ")||null},l=e=>!!e.city&&!!e.country},function(e,t,c){"use strict";c.d(t,"b",(function(){return a})),c.d(t,"a",(function(){return s}));var r=c(51);const o=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),n=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t,a=(e,t,c="&hellip;",a=!0)=>{const s=o(e),i=s.split(" ").splice(0,t).join(" ");return i===s?a?Object(r.autop)(s):s:a?Object(r.autop)(n(i,c)):n(i,c)},s=(e,t,c=!0,a="&hellip;",s=!0)=>{const i=o(e),l=i.slice(0,t);if(l===i)return s?Object(r.autop)(i):i;if(c)return Object(r.autop)(n(l,a));const u=l.match(/([\s]+)/g),d=u?u.length:0,p=i.slice(0,t+d);return s?Object(r.autop)(n(p,a)):n(p,a)}},function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));var r=c(111);const o=(e,t)=>(c,o=10)=>{const n=r.a.addEventCallback(e,c,o);return t(n),()=>{t(r.a.removeEventCallback(e,n.id))}}},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return l}));var r=c(0),o=c(6),n=c(8),a=c(10),s=c(59);const i=(e,t)=>{const c=e.find((({id:e})=>e===t));return c?c.quantity:0},l=e=>{const{addItemToCart:t}=Object(o.useDispatch)(n.CART_STORE_KEY),{cartItems:c,cartIsLoading:l}=Object(s.a)(),{createErrorNotice:u,removeNotice:d}=Object(o.useDispatch)("core/notices"),[p,b]=Object(r.useState)(!1),m=Object(r.useRef)(i(c,e));return Object(r.useEffect)((()=>{const t=i(c,e);t!==m.current&&(m.current=t)}),[c,e]),{cartQuantity:Number.isFinite(m.current)?m.current:0,addingToCart:p,cartIsLoading:l,addToCart:(c=1)=>(b(!0),t(e,c).then((()=>{d("add-to-cart")})).catch((e=>{u(Object(a.decodeEntities)(e.message),{id:"add-to-cart",context:"wc/all-products",isDismissible:!0})})).finally((()=>{b(!1)})))}}},function(e,t,c){"use strict";var r=c(0),o=c(9);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"}));t.a=n},,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,function(e,t,c){"use strict";var r=c(0),o=c(11),n=c(5),a=c(43),s=c(2),i=c(1),l=c(4),u=c.n(l);c(310);const d=(e,t)=>{const[c,o]=Object(r.useState)((()=>{const c=window.localStorage.getItem(e);if(c)try{return JSON.parse(c)}catch{console.error(`Value for key '${e}' could not be retrieved from localStorage because it can't be parsed.`)}return t}));return Object(r.useEffect)((()=>{try{window.localStorage.setItem(e,JSON.stringify(c))}catch{console.error(`Value for key '${e}' could not be saved in localStorage because it can't be converted into a string.`)}}),[e,c]),[c,o]},p=[],b=({block:e})=>{const[t,c]=(e=>{const[t,c]=d("wc-blocks_dismissed_sidebar_compatibility_notices",p),[o,n]=Object(r.useState)(!1),a=t.includes(e);return Object(r.useEffect)((()=>{n(!a)}),[a]),[o,()=>{const r=new Set(t);r.add(e),c([...r])}]})(e),o=Object(r.createInterpolateElement)(Object(i.__)("The Cart & Checkout Blocks are built to optimize for faster checkout. To make sure this feature is right for your store, <a>review the list of compatible extensions</a>.","woocommerce"),{a:Object(r.createElement)(s.ExternalLink,{href:"https://woocommerce.com/document/cart-checkout-blocks-support-status/#section-3"})});return Object(r.createElement)(s.Notice,{onRemove:c,className:u()(["wc-blocks-sidebar-compatibility-notice",{"is-hidden":!t}])},o)};var m=c(3);function g(){const e=Object(i.__)("Your store does not have any payment methods that support the Checkout block. Once you have configured a compatible payment method it will be displayed here.","woocommerce");return Object(r.createElement)(s.Notice,{className:"wc-blocks-no-payment-methods-notice",status:"warning",spokenMessage:e,isDismissible:!1},Object(r.createElement)("div",{className:"wc-blocks-no-payment-methods-notice__content"},e," ",Object(r.createElement)(s.ExternalLink,{href:`${m.ADMIN_URL}admin.php?page=wc-settings&tab=checkout`},Object(i.__)("Configure Payment Methods","woocommerce"))))}c(311);var O=c(8),h=c(195),_=c(14),j=c.n(_),k=c(79),f=c(6),y=c(17);function w({block:e}){const t="checkout"===e?y.e:y.c,c="checkout"===e?"woocommerce_checkout_page_id":"woocommerce_cart_page_id",o="checkout"===e?Object(i.__)("If you would like to use this block as your default checkout, update your page settings","woocommerce"):Object(i.__)("If you would like to use this block as your default cart, update your page settings","woocommerce"),{saveEntityRecord:n}=Object(f.useDispatch)(k.store),{editPost:a,savePost:l}=Object(f.useDispatch)(h.store),{slug:u,isLoadingPage:d,postPublished:p,currentPostId:b}=Object(f.useSelect)((c=>{var r;const{getEntityRecord:o,isResolving:n}=c(k.store),{isCurrentPostPublished:a,getCurrentPostId:s}=c(h.store);return{slug:(null===(r=o("postType","page",t))||void 0===r?void 0:r.slug)||e,isLoadingPage:n("getEntityRecord",["postType","page",t]),postPublished:a(),currentPostId:s()}}),[]),[m,g]=Object(r.useState)("pristine"),O=Object(r.useCallback)((()=>{g("updating"),Promise.resolve().then((()=>j()({path:`/wc/v3/settings/advanced/${c}`,method:"GET"}))).catch((e=>{"rest_setting_setting_invalid"===e.code&&g("error")})).then((()=>{if(!p)return a({status:"publish"}),l()})).then((()=>j()({path:`/wc/v3/settings/advanced/${c}`,method:"POST",data:{value:b.toString()}}))).then((()=>{if(0!==t)return n("postType","page",{id:t,slug:`${u}-2`})})).then((()=>a({slug:u}))).then((()=>l())).then((()=>g("updated")))}),[p,a,l,c,b,t,n,u]);return b===t||"dismissed"===m?null:Object(r.createElement)(s.Notice,{className:"wc-default-page-notice",status:"updated"===m?"success":"warning",onRemove:()=>g("dismissed"),spokenMessage:"updated"===m?Object(i.__)("Page settings updated","woocommerce"):o},"updated"===m?Object(i.__)("Page settings updated","woocommerce"):Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,o),Object(r.createElement)(s.Button,{onClick:O,variant:"secondary",isBusy:"updating"===m,disabled:d,isSmall:!0},Object(i.__)("Update your page settings","woocommerce"))))}c(309);var E=c(231);function v({block:e}){const[t,c]=Object(r.useState)("pristine"),o=Object(f.select)("core/edit-site");if("dismissed"===t||Object(E.a)(o))return null;const n=`${Object(m.getSetting)("adminUrl")}site-editor.php?postType=wp_template&postId=woocommerce%2Fwoocommerce%2F%2F${e}`,a=Object(i.sprintf)(
// translators: %s: cart or checkout page name.
Object(i.__)("The default %s can be customized in the Site Editor","woocommerce"),"checkout"===e?Object(i.__)("checkout","woocommerce"):Object(i.__)("cart","woocommerce"));return Object(r.createElement)(s.Notice,{className:"wc-default-template-notice",status:"warning",onRemove:()=>c("dismissed"),spokenMessage:a},Object(r.createElement)(r.Fragment,null,Object(r.createElement)("p",null,a),Object(r.createElement)(s.Button,{href:n,variant:"secondary",isSmall:!0},Object(i.__)("Edit template","woocommerce"))))}c(308);var C=c(467),S=c(70),P=c(72);const N=[];function x({toggleDismissedStatus:e,block:t}){const[c,o,n,a]=(e=>{const[t,c]=d("wc-blocks_dismissed_incompatible_payment_gateways_notices",N),[o,n]=Object(r.useState)(!1),{incompatiblePaymentMethods:a}=Object(f.useSelect)((e=>{const{getIncompatiblePaymentMethods:t}=e(P.a);return{incompatiblePaymentMethods:t()}}),[]),s=Object.keys(a),i=s.length,l=t.some((t=>{return Object.keys(t).includes(e)&&(c=t[e],r=s,c.length===r.length&&new Set([...c,...r]).size===c.length);var c,r})),u=0===i||l;return Object(r.useEffect)((()=>{n(!u),u||l||c((t=>t.reduce(((t,c)=>(Object.keys(c).includes(e)||t.push(c),t)),[])))}),[u,l,c,e]),[o,()=>{const r=new Set(t);r.add({[e]:s}),c([...r])},a,i]})(t);if(Object(r.useEffect)((()=>{e(!c)}),[c,e]),!c)return null;const l=Object(r.createInterpolateElement)(Object(i._n)("The following extension is incompatible with the block-based checkout. <a>Learn more</a>","The following extensions are incompatible with the block-based checkout. <a>Learn more</a>",a,"woocommerce"),{a:Object(r.createElement)(s.ExternalLink,{href:"https://woocommerce.com/document/cart-checkout-blocks-support-status/"})});return Object(r.createElement)(s.Notice,{className:"wc-blocks-incompatible-extensions-notice",status:"warning",onRemove:o,spokenMessage:l},Object(r.createElement)("div",{className:"wc-blocks-incompatible-extensions-notice__content"},Object(r.createElement)(S.a,{className:"wc-blocks-incompatible-extensions-notice__warning-icon",icon:Object(r.createElement)(C.a,null)}),Object(r.createElement)("div",null,Object(r.createElement)("p",null,l),Object(r.createElement)("ul",null,Object.entries(n).map((([e,t])=>Object(r.createElement)("li",{key:e,className:"wc-blocks-incompatible-extensions-notice__element"},t)))))))}c(307);var T=c(140);const R=Object(o.createHigherOrderComponent)((e=>t=>{const{clientId:c,name:o,isSelected:a}=t,s=Object(m.getSetting)("isBlockTheme"),[i,l]=Object(r.useState)(!0),{isCart:u,isCheckout:d,isPaymentMethodsBlock:p,hasPaymentMethods:h}=Object(f.useSelect)((e=>{const{getBlockParentsByBlockName:t,getBlockName:r}=e(n.store),o=t(c,["woocommerce/cart","woocommerce/checkout"]).map(r),a=r(c);return{isCart:o.includes("woocommerce/cart")||"woocommerce/cart"===a,isCheckout:o.includes("woocommerce/checkout")||"woocommerce/checkout"===a,isPaymentMethodsBlock:"woocommerce/checkout-payment-block"===a,hasPaymentMethods:e(O.PAYMENT_STORE_KEY).paymentMethodsInitialized()&&Object.keys(e(O.PAYMENT_STORE_KEY).getAvailablePaymentMethods()).length>0}}));return o.startsWith("woocommerce/")&&a&&(u||d)?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(n.InspectorControls,null,Object(r.createElement)(x,{toggleDismissedStatus:e=>{l(e)},block:d?"woocommerce/checkout":"woocommerce/cart"}),s?Object(r.createElement)(v,{block:d?"checkout":"cart"}):Object(r.createElement)(w,{block:d?"checkout":"cart"}),i?Object(r.createElement)(b,{block:d?"checkout":"cart"}):null,p&&!h&&Object(r.createElement)(g,null),Object(r.createElement)(T.a,null)),Object(r.createElement)(e,{key:"edit",...t})):Object(r.createElement)(e,{key:"edit",...t})}),"withSidebarNotices");Object(a.hasFilter)("editor.BlockEdit","woocommerce/add/sidebar-compatibility-notice")||Object(a.addFilter)("editor.BlockEdit","woocommerce/add/sidebar-compatibility-notice",R,11)},,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return n}));var r=c(6),o=c(8);const n=()=>{const{customerData:e,isInitialized:t}=Object(r.useSelect)((e=>{const t=e(o.CART_STORE_KEY);return{customerData:t.getCustomerData(),isInitialized:t.hasFinishedResolution("getCartData")}})),{setShippingAddress:c,setBillingAddress:n}=Object(r.useDispatch)(o.CART_STORE_KEY);return{isInitialized:t,billingAddress:e.billingAddress,shippingAddress:e.shippingAddress,setBillingAddress:n,setShippingAddress:c}}},function(e,t,c){"use strict";c.d(t,"a",(function(){return y}));var r=c(0),o=c(243),n=c(3),a=c(146),s=c(148),i=c(122),l=c(121),u=c(1),d=c(14),p=c.n(d),b=c(462),m=c(282),g=c(6),O=c(8),h=c(36);const _=(e,t,c)=>{const r=Object.keys(e).map((t=>({key:t,value:e[t]})),[]),o=`wc-${c}-new-payment-method`;return r.push({key:o,value:t}),r},j=e=>{if(!e)return;const{__internalSetCustomerId:t}=Object(g.dispatch)(O.CHECKOUT_STORE_KEY);p.a.setNonce&&"function"==typeof p.a.setNonce&&p.a.setNonce(e),null!=e&&e.get("User-ID")&&t(parseInt(e.get("User-ID")||"0",10))};var k=c(59),f=()=>{const{onCheckoutValidation:e}=Object(l.b)(),{hasError:t,redirectUrl:c,isProcessing:o,isBeforeProcessing:n,isComplete:a,orderNotes:s,shouldCreateAccount:d,extensionData:f}=Object(g.useSelect)((e=>{const t=e(O.CHECKOUT_STORE_KEY);return{hasError:t.hasError(),redirectUrl:t.getRedirectUrl(),isProcessing:t.isProcessing(),isBeforeProcessing:t.isBeforeProcessing(),isComplete:t.isComplete(),orderNotes:t.getOrderNotes(),shouldCreateAccount:t.getShouldCreateAccount(),extensionData:t.getExtensionData()}})),{__internalSetHasError:y,__internalProcessCheckoutResponse:w}=Object(g.useDispatch)(O.CHECKOUT_STORE_KEY),E=Object(g.useSelect)((e=>e(O.VALIDATION_STORE_KEY).hasValidationErrors)),{shippingErrorStatus:v}=Object(i.b)(),{billingAddress:C,shippingAddress:S}=Object(g.useSelect)((e=>e(O.CART_STORE_KEY).getCustomerData())),{cartNeedsPayment:P,cartNeedsShipping:N,receiveCartContents:x}=Object(k.a)(),{activePaymentMethod:T,paymentMethodData:R,isExpressPaymentMethodActive:I,hasPaymentError:A,isPaymentReady:B,shouldSavePayment:M}=Object(g.useSelect)((e=>{const t=e(O.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),paymentMethodData:t.getPaymentMethodData(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive(),hasPaymentError:t.hasPaymentError(),isPaymentReady:t.isPaymentReady(),shouldSavePayment:t.getShouldSavePaymentMethod()}}),[]),D=Object(h.getPaymentMethods)(),L=Object(h.getExpressPaymentMethods)(),F=Object(r.useRef)(C),V=Object(r.useRef)(S),$=Object(r.useRef)(c),[Y,U]=Object(r.useState)(!1),z=Object(r.useMemo)((()=>{var e;const t={...L,...D};return null==t||null===(e=t[T])||void 0===e?void 0:e.paymentMethodId}),[T,L,D]),K=E()&&!I||A||v.hasError,H=!t&&!K&&(B||!P)&&o;Object(r.useEffect)((()=>{K===t||!o&&!n||I||y(K)}),[K,t,o,n,I,y]),Object(r.useEffect)((()=>{F.current=C,V.current=S,$.current=c}),[C,S,c]);const q=Object(r.useCallback)((()=>E()?void 0!==Object(g.select)(O.VALIDATION_STORE_KEY).getValidationError("shipping-rates-error")&&{errorMessage:Object(u.__)("Sorry, this order requires a shipping option.","woocommerce")}:A?{errorMessage:Object(u.__)("There was a problem with your payment option.","woocommerce"),context:"wc/checkout/payments"}:!v.hasError||{errorMessage:Object(u.__)("There was a problem with your shipping option.","woocommerce"),context:"wc/checkout/shipping-methods"}),[E,A,v.hasError]);Object(r.useEffect)((()=>{let t;return I||(t=e(q,0)),()=>{I||"function"!=typeof t||t()}}),[e,q,I]),Object(r.useEffect)((()=>{$.current&&(window.location.href=$.current)}),[a]);const W=Object(r.useCallback)((async()=>{if(Y)return;U(!0),Object(b.a)();const e=P?{payment_method:z,payment_data:_(R,M,T)}:{},t={shipping_address:N?Object(m.a)(V.current):void 0,billing_address:Object(m.a)(F.current),customer_note:s,create_account:d,...e,extensions:{...f}};p()({path:"/wc/store/v1/checkout",method:"POST",data:t,cache:"no-store",parse:!1}).then((e=>{if(function(e){if("object"!=typeof e||null===e||!("body"in e)||!("headers"in e))throw new Error("Response not valid")}(e),j(e.headers),!e.ok)throw e;return e.json()})).then((e=>{w(e),U(!1)})).catch((e=>{j(null==e?void 0:e.headers);try{e.json().then((e=>e)).then((e=>{var t;null!==(t=e.data)&&void 0!==t&&t.cart&&x(e.data.cart),Object(O.processErrorResponse)(e),w(e)}))}catch{Object(O.processErrorResponse)({code:"unknown_error",message:Object(u.__)("Something went wrong. Please try placing your order again.","woocommerce"),data:null})}y(!0),U(!1)}))}),[Y,P,z,R,M,T,s,d,f,N,x,y,w]);return Object(r.useEffect)((()=>{H&&!Y&&W()}),[W,H,Y]),null};const y=({children:e,redirectUrl:t})=>Object(r.createElement)(l.a,{redirectUrl:t},Object(r.createElement)(i.a,null,Object(r.createElement)(s.a,null,e,Object(r.createElement)(a.a,{renderError:n.CURRENT_USER_IS_ADMIN?null:()=>null},Object(r.createElement)(o.PluginArea,{scope:"woocommerce-checkout"})),Object(r.createElement)(f,null))))},,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r=e=>Object.fromEntries(e.map((({package_id:e,shipping_rates:t})=>{var c;return[e,(null===(c=t.find((e=>e.selected)))||void 0===c?void 0:c.rate_id)||""]})))},,,,,,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return A}));var r=c(1),o=c(22),n=c(0),a=c(4),s=c.n(a),i=c(9),l=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)("g",{fill:"none",fillRule:"evenodd"},Object(n.createElement)("path",{d:"M0 0h24v24H0z"}),Object(n.createElement)("path",{fill:"#000",fillRule:"nonzero",d:"M17.3 8v1c1 .2 1.4.9 1.4 1.7h-1c0-.6-.3-1-1-1-.8 0-1.3.4-1.3.9 0 .4.3.6 1.4 1 1 .2 2 .6 2 1.9 0 .9-.6 1.4-1.5 1.5v1H16v-1c-.9-.1-1.6-.7-1.7-1.7h1c0 .6.4 1 1.3 1 1 0 1.2-.5 1.2-.8 0-.4-.2-.8-1.3-1.1-1.3-.3-2.1-.8-2.1-1.8 0-.9.7-1.5 1.6-1.6V8h1.3zM12 10v1H6v-1h6zm2-2v1H6V8h8zM2 4v16h20V4H2zm2 14V6h16v12H4z"}),Object(n.createElement)("path",{stroke:"#000",strokeLinecap:"round",d:"M6 16c2.6 0 3.9-3 1.7-3-2 0-1 3 1.5 3 1 0 1-.8 2.8-.8"}))),u=c(633),d=c(615),p=c(634),b=c(70),m=c(113),g=c(21);c(297);const O={bank:u.a,bill:d.a,card:p.a,checkPayment:l};var h=({icon:e="",text:t=""})=>{const c=!!e,r=Object(n.useCallback)((e=>c&&Object(m.a)(e)&&Object(g.c)(O,e)),[c]),o=s()("wc-block-components-payment-method-label",{"wc-block-components-payment-method-label--with-icon":c});return Object(n.createElement)("span",{className:o},r(e)?Object(n.createElement)(b.a,{icon:O[e]}):e,t)},_=c(176),j=c(3),k=c(37),f=c.n(k),y=c(85),w=c(6),E=c(8),v=c(13),C=c(59),S=c(241),P=c(68),N=c(121),x=c(148),T=c(122);const R=(e,t)=>{const c=[],o=(t,c)=>{const r=c+"_tax",o=Object(g.c)(e,c)&&Object(m.a)(e[c])?parseInt(e[c],10):0;return{key:c,label:t,value:o,valueWithTax:o+(Object(g.c)(e,r)&&Object(m.a)(e[r])?parseInt(e[r],10):0)}};return c.push(o(Object(r.__)("Subtotal:","woocommerce"),"total_items")),c.push(o(Object(r.__)("Fees:","woocommerce"),"total_fees")),c.push(o(Object(r.__)("Discount:","woocommerce"),"total_discount")),c.push({key:"total_tax",label:Object(r.__)("Taxes:","woocommerce"),value:parseInt(e.total_tax,10),valueWithTax:parseInt(e.total_tax,10)}),t&&c.push(o(Object(r.__)("Shipping:","woocommerce"),"total_shipping")),c};var I=c(141);const A=()=>{const{onCheckoutBeforeProcessing:e,onCheckoutValidationBeforeProcessing:t,onCheckoutAfterProcessingWithSuccess:c,onCheckoutAfterProcessingWithError:a,onSubmit:s,onCheckoutSuccess:i,onCheckoutFail:l,onCheckoutValidation:u}=Object(N.b)(),{isCalculating:d,isComplete:p,isIdle:b,isProcessing:m,customerId:g}=Object(w.useSelect)((e=>{const t=e(E.CHECKOUT_STORE_KEY);return{isComplete:t.isComplete(),isIdle:t.isIdle(),isProcessing:t.isProcessing(),customerId:t.getCustomerId(),isCalculating:t.isCalculating()}})),{paymentStatus:O,activePaymentMethod:k,shouldSavePayment:A}=Object(w.useSelect)((e=>{const t=e(E.PAYMENT_STORE_KEY);return{paymentStatus:{get isPristine(){return f()("isPristine",{since:"9.6.0",alternative:"isIdle",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),t.isPaymentIdle()},isIdle:t.isPaymentIdle(),isStarted:t.isExpressPaymentStarted(),isProcessing:t.isPaymentProcessing(),get isFinished(){return f()("isFinished",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),t.hasPaymentError()||t.isPaymentReady()},hasError:t.hasPaymentError(),get hasFailed(){return f()("hasFailed",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),t.hasPaymentError()},get isSuccessful(){return f()("isSuccessful",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),t.isPaymentReady()},isReady:t.isPaymentReady(),isDoingExpressPayment:t.isExpressPaymentMethodActive()},activePaymentMethod:t.getActivePaymentMethod(),shouldSavePayment:t.getShouldSavePaymentMethod()}})),{__internalSetExpressPaymentError:B}=Object(w.useDispatch)(E.PAYMENT_STORE_KEY),{onPaymentProcessing:M,onPaymentSetup:D}=Object(x.b)(),{shippingErrorStatus:L,shippingErrorTypes:F,onShippingRateSuccess:V,onShippingRateFail:$,onShippingRateSelectSuccess:Y,onShippingRateSelectFail:U}=Object(T.b)(),{shippingRates:z,isLoadingRates:K,selectedRates:H,isSelectingRate:q,selectShippingRate:W,needsShipping:G}=Object(I.a)(),{billingAddress:Q,shippingAddress:Z}=Object(w.useSelect)((e=>e(E.CART_STORE_KEY).getCustomerData())),{setShippingAddress:X}=Object(w.useDispatch)(E.CART_STORE_KEY),{cartItems:J,cartFees:ee,cartTotals:te,extensions:ce}=Object(C.a)(),{appliedCoupons:re}=Object(S.a)(),oe=Object(n.useRef)(R(te,G)),ne=Object(n.useRef)({label:Object(r.__)("Total","woocommerce"),value:parseInt(te.total_price,10)});Object(n.useEffect)((()=>{oe.current=R(te,G),ne.current={label:Object(r.__)("Total","woocommerce"),value:parseInt(te.total_price,10)}}),[te,G]);const ae=Object(n.useCallback)(((e="")=>{f()("setExpressPaymentError should only be used by Express Payment Methods (using the provided onError handler).",{alternative:"",plugin:"woocommerce-gutenberg-products-block",link:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4228"}),B(e)}),[B]);return{activePaymentMethod:k,billing:{appliedCoupons:re,billingAddress:Q,billingData:Q,cartTotal:ne.current,cartTotalItems:oe.current,currency:Object(o.getCurrencyFromPriceResponse)(te),customerId:g,displayPricesIncludingTax:Object(j.getSetting)("displayCartPricesIncludingTax",!1)},cartData:{cartItems:J,cartFees:ee,extensions:ce},checkoutStatus:{isCalculating:d,isComplete:p,isIdle:b,isProcessing:m},components:{LoadingMask:y.a,PaymentMethodIcons:_.a,PaymentMethodLabel:h,ValidationInputError:v.ValidationInputError},emitResponse:{noticeContexts:P.d,responseTypes:P.e},eventRegistration:{onCheckoutAfterProcessingWithError:a,onCheckoutAfterProcessingWithSuccess:c,onCheckoutBeforeProcessing:e,onCheckoutValidationBeforeProcessing:t,onCheckoutSuccess:i,onCheckoutFail:l,onCheckoutValidation:u,onPaymentProcessing:M,onPaymentSetup:D,onShippingRateFail:$,onShippingRateSelectFail:U,onShippingRateSelectSuccess:Y,onShippingRateSuccess:V},onSubmit:s,paymentStatus:O,setExpressPaymentError:ae,shippingData:{isSelectingRate:q,needsShipping:G,selectedRates:H,setSelectedRates:W,setShippingAddress:X,shippingAddress:Z,shippingRates:z,shippingRatesLoading:K},shippingStatus:{shippingErrorStatus:L,shippingErrorTypes:F},shouldSavePayment:A}}},function(e,t,c){"use strict";c.d(t,"b",(function(){return i})),c.d(t,"a",(function(){return l}));var r=c(0),o=c(11),n=c(4),a=c.n(n);const s=Object(r.createContext)({hasContainerWidth:!1,containerClassName:"",isMobile:!1,isSmall:!1,isMedium:!1,isLarge:!1}),i=()=>Object(r.useContext)(s),l=({children:e,className:t=""})=>{const[c,n]=(()=>{const[e,{width:t}]=Object(o.useResizeObserver)();let c="";return t>700?c="is-large":t>520?c="is-medium":t>400?c="is-small":t&&(c="is-mobile"),[e,c]})(),i={hasContainerWidth:""!==n,containerClassName:n,isMobile:"is-mobile"===n,isSmall:"is-small"===n,isMedium:"is-medium"===n,isLarge:"is-large"===n};return Object(r.createElement)(s.Provider,{value:i},Object(r.createElement)("div",{className:a()(t,n)},c,e))}},,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return a})),c.d(t,"b",(function(){return s}));var r=c(68),o=c(21);const n=e=>Object(o.b)(e)&&Object(o.c)(e,"type"),a=async(e,t,c)=>{const o=Object(r.a)(e,t),n=[];for(const e of o)try{const t=await Promise.resolve(e.callback(c));"object"==typeof t&&n.push(t)}catch(e){console.error(e)}return!n.length||n},s=async(e,t,c)=>{const o=[],a=Object(r.a)(e,t);for(const e of a)try{const t=await Promise.resolve(e.callback(c));if(!n(t))continue;if(!t.hasOwnProperty("type"))throw new Error("Returned objects from event emitter observers must return an object with a type property");if(Object(r.b)(t)||Object(r.c)(t))return o.push(t),o;o.push(t)}catch(e){return console.error(e),o.push({type:r.e.ERROR}),o}return o}},,,,,,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var r=c(7),o=c(13),n=c(8),a=c(6);const s=["core/paragraph","core/image","core/separator"],i=e=>{const t=Object(o.applyCheckoutFilter)({filterName:"additionalCartCheckoutInnerBlockTypes",defaultValue:[],extensions:Object(a.select)(n.CART_STORE_KEY).getCartData().extensions,arg:{block:e},validation:e=>{if(Array.isArray(e)&&e.every((e=>"string"==typeof e)))return!0;throw new Error("allowedBlockTypes filters must return an array of strings.")}});return Array.from(new Set([...Object(r.getBlockTypes)().filter((t=>((null==t?void 0:t.parent)||[]).includes(e))).map((({name:e})=>e)),...s,...t]))}},,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return s}));var r=c(0),o=c(6),n=c(7),a=c(95);const s=({clientId:e,registeredBlocks:t,defaultTemplate:c=[]})=>{const s=Object(r.useRef)(t),i=Object(r.useRef)(c),l=Object(o.useRegistry)(),{isPreview:u}=Object(a.b)();Object(r.useEffect)((()=>{let t=!1;if(u)return;const{replaceInnerBlocks:c}=Object(o.dispatch)("core/block-editor");return l.subscribe((()=>{const r=l.select("core/block-editor").getBlocks(e);if(0===r.length&&i.current.length>0&&!t){const r=Object(n.createBlocksFromInnerBlocksTemplate)(i.current);if(0!==r.length)return t=!0,void c(e,r)}const o=s.current.map((e=>Object(n.getBlockType)(e))),a=((e,t)=>{const c=t.filter((e=>e&&(({attributes:e})=>{var t,c,r;return Boolean((null===(t=e.lock)||void 0===t?void 0:t.remove)||(null===(c=e.lock)||void 0===c||null===(r=c.default)||void 0===r?void 0:r.remove))})(e))),r=[];return c.forEach((t=>{void 0!==t&&(e.find((e=>e.name===t.name))||r.push(t))})),r})(r,o);if(0===a.length)return;let u=-1;const d=a.map((e=>{const t=i.current.findIndex((([t])=>t===e.name)),c=Object(n.createBlock)(e.name);return-1===u&&(u=(({defaultTemplatePosition:e,innerBlocks:t,currentDefaultTemplate:c})=>{switch(e){case-1:return t.length;case 0:return 0;default:const r=c.current[e-1],o=t.findIndex((({name:e})=>e===r[0]));return-1===o?e:o+1}})({defaultTemplatePosition:t,innerBlocks:r,currentDefaultTemplate:i})),c}));l.batch((()=>{l.dispatch("core/block-editor").insertBlocks(d,u,e)}))}),"core/block-editor")}),[e,u,l])}},,,,,,,,,function(e){e.exports=JSON.parse('{"name":"woocommerce/cart-cross-sells-products-block","version":"1.0.0","title":"Cart Cross-Sells Products","description":"Shows the Cross-Sells products.","category":"woocommerce","supports":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"attributes":{"columns":{"type":"number","default":3},"lock":{"type":"object","default":{"remove":true,"move":true}}},"parent":["woocommerce/cart-cross-sells-block"],"textdomain":"woocommerce","$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2}')},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,c){e.exports=c(558)},function(e,t){},function(e,t,c){"use strict";var r=c(0),o=c(9);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("g",{fill:"none",fillRule:"evenodd"},Object(r.createElement)("path",{d:"M0 0h24v24H0z"}),Object(r.createElement)("path",{fill:"currentColor",fillRule:"nonzero",d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49A.996.996 0 0 0 20.01 4H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45ZM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2Zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2Z"}))," ");t.a=n},function(e,t){},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),a=c(348);c(292),t.a=({children:e,className:t})=>Object(r.createElement)(a.a,{className:n()("wc-block-components-sidebar-layout",t)},e)},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o);const a=Object(r.forwardRef)((({children:e,className:t=""},c)=>Object(r.createElement)("div",{ref:c,className:n()("wc-block-components-main",t)},e)));t.a=a},function(e,t){},function(e,t){},function(e,t){},function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o);const a=Object(r.forwardRef)((({children:e,className:t=""},c)=>Object(r.createElement)("div",{ref:c,className:n()("wc-block-components-sidebar",t)},e)));t.a=a},function(e,t){},function(e,t){},function(e,t){},function(e,t,c){"use strict";var r=c(0),o=c(9);const n=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{d:"M22.7 22.7l-20-20L2 2l-.7-.7L0 2.5 4.4 7l2.2 4.7L5.2 14A2 2 0 007 17h7.5l1.3 1.4a2 2 0 102.8 2.8l2.9 2.8 1.2-1.3zM7.4 15a.2.2 0 01-.2-.3l.9-1.7h2.4l2 2h-5zm8.2-2a2 2 0 001.7-1l3.6-6.5.1-.5c0-.6-.4-1-1-1H6.5l9 9zM7 18a2 2 0 100 4 2 2 0 000-4z"}),Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}));t.a=n},function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r=e=>Object.values(e).reduce(((e,t)=>(null!==t.icons&&(e=e.concat(t.icons)),e)),[])},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(4),a=c.n(n),s=c(40),i=c(13),l=c(59),u=c(3),d=c(22);c(298),t.a=({currency:e,values:t,className:c})=>{const n=Object(u.getSetting)("taxesEnabled",!0)&&Object(u.getSetting)("displayCartPricesIncludingTax",!1),{total_price:p,total_tax:b,tax_lines:m}=t,{receiveCart:g,...O}=Object(l.a)(),h=Object(i.applyCheckoutFilter)({filterName:"totalLabel",defaultValue:Object(o.__)("Total","woocommerce"),extensions:O.extensions,arg:{cart:O}}),_=parseInt(b,10),j=m&&m.length>0?Object(o.sprintf)(/* translators: %s is a list of tax rates */
Object(o.__)("Including %s","woocommerce"),m.map((({name:t,price:c})=>`${Object(d.formatPrice)(c,e)} ${t}`)).join(", ")):Object(o.__)("Including <TaxAmount/> in taxes","woocommerce");return Object(r.createElement)(i.TotalsItem,{className:a()("wc-block-components-totals-footer-item",c),currency:e,label:h,value:parseInt(p,10),description:n&&0!==_&&Object(r.createElement)("p",{className:"wc-block-components-totals-footer-item-tax"},Object(r.createInterpolateElement)(j,{TaxAmount:Object(r.createElement)(s.a,{className:"wc-block-components-totals-footer-item-tax-value",currency:e,value:_})}))})}},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(85),a=c(272),s=c(13),i=c(3);c(299);const l={context:"summary"};t.a=({cartCoupons:e=[],currency:t,isRemovingCoupon:c,removeCoupon:u,values:d})=>{const{total_discount:p,total_discount_tax:b}=d,m=parseInt(p,10);if(!m&&0===e.length)return null;const g=parseInt(b,10),O=Object(i.getSetting)("displayCartPricesIncludingTax",!1)?m+g:m,h=Object(s.applyCheckoutFilter)({arg:l,filterName:"coupons",defaultValue:e});return Object(r.createElement)(s.TotalsItem,{className:"wc-block-components-totals-discount",currency:t,description:0!==h.length&&Object(r.createElement)(n.a,{screenReaderLabel:Object(o.__)("Removing coupon…","woocommerce"),isLoading:c,showSpinner:!1},Object(r.createElement)("ul",{className:"wc-block-components-totals-discount__coupon-list"},h.map((e=>Object(r.createElement)(a.a,{key:"coupon-"+e.code,className:"wc-block-components-totals-discount__coupon-list-item",text:e.label,screenReaderText:Object(o.sprintf)(/* translators: %s Coupon code. */
Object(o.__)("Coupon: %s","woocommerce"),e.label),disabled:c,onRemove:()=>{u(e.code)},radius:"large",ariaLabel:Object(o.sprintf)(/* translators: %s is a coupon code. */
Object(o.__)('Remove coupon "%s"',"woocommerce"),e.label)}))))),label:O?Object(o.__)("Discount","woocommerce"):Object(o.__)("Coupons","woocommerce"),value:O?-1*O:"-"})}},function(e,t,c){"use strict";c.d(t,"a",(function(){return n})),c.d(t,"b",(function(){return a}));var r=c(1),o=c(6);c(68),Object(r.__)("Something went wrong. Please contact us to get assistance.","woocommerce");const n=()=>{const e=Object(o.select)("wc/store/store-notices").getRegisteredContainers(),{removeNotice:t}=Object(o.dispatch)("core/notices"),{getNotices:c}=Object(o.select)("core/notices");e.forEach((e=>{c(e).forEach((c=>{t(c.id,e)}))}))},a=e=>{const{removeNotice:t}=Object(o.dispatch)("core/notices"),{getNotices:c}=Object(o.select)("core/notices");c(e).forEach((c=>{t(c.id,e)}))}},function(e,t,c){"use strict";c.d(t,"a",(function(){return s}));var r=c(269),o=c.n(r);const n=["a","b","em","i","strong","p","br"],a=["target","href","rel","name","download"],s=(e,t)=>{const c=(null==t?void 0:t.tags)||n,r=(null==t?void 0:t.attr)||a;return o.a.sanitize(e,{ALLOWED_TAGS:c,ALLOWED_ATTR:r})}},function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(71),a=c(85),s=c(11),i=c(13),l=c(6),u=c(8),d=c(4),p=c.n(d);c(306),t.a=Object(s.withInstanceId)((({instanceId:e,isLoading:t=!1,onSubmit:c,displayCouponForm:s=!1})=>{const[d,b]=Object(r.useState)(""),[m,g]=Object(r.useState)(!s),O=`wc-block-components-totals-coupon__input-${e}`,h=p()("wc-block-components-totals-coupon__content",{"screen-reader-text":m}),{validationErrorId:_}=Object(l.useSelect)((e=>({validationErrorId:e(u.VALIDATION_STORE_KEY).getValidationErrorId(O)})));return Object(r.createElement)("div",{className:"wc-block-components-totals-coupon"},m?Object(r.createElement)("a",{role:"button",href:"#wc-block-components-totals-coupon__form",className:"wc-block-components-totals-coupon-link","aria-label":Object(o.__)("Add a coupon","woocommerce"),onClick:e=>{e.preventDefault(),g(!1)}},Object(o.__)("Add a coupon","woocommerce")):Object(r.createElement)(a.a,{screenReaderLabel:Object(o.__)("Applying coupon…","woocommerce"),isLoading:t,showSpinner:!1},Object(r.createElement)("div",{className:h},Object(r.createElement)("form",{className:"wc-block-components-totals-coupon__form",id:"wc-block-components-totals-coupon__form"},Object(r.createElement)(i.ValidatedTextInput,{id:O,errorId:"coupon",className:"wc-block-components-totals-coupon__input",label:Object(o.__)("Enter code","woocommerce"),value:d,ariaDescribedBy:_,onChange:e=>{b(e)},focusOnMount:!0,validateOnMount:!1,showError:!1}),Object(r.createElement)(n.a,{className:"wc-block-components-totals-coupon__button",disabled:t||!d,showSpinner:t,onClick:e=>{e.preventDefault(),void 0!==c?c(d).then((e=>{e&&(b(""),g(!0))})):(b(""),g(!0))},type:"submit"},Object(o.__)("Apply","woocommerce"))),Object(r.createElement)(i.ValidationInputError,{propertyName:"coupon",elementId:O}))))}))},function(e,t){},function(e,t){},function(e,t,c){"use strict";var r=c(0),o=c(9);const n={warning:"#F0B849",error:"#CC1818",success:"#46B450",info:"#0073AA"};t.a=({status:e="warning",...t})=>Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},Object(r.createElement)("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",stroke:n[e],strokeWidth:"1.5"}),Object(r.createElement)("path",{d:"M13 7H11V13H13V7Z",fill:n[e]}),Object(r.createElement)("path",{d:"M13 15H11V17H13V15Z",fill:n[e]}))},function(e,t,c){"use strict";c.d(t,"a",(function(){return d})),c.d(t,"b",(function(){return p}));var r=c(5),o=c(78),n=c(6),a=c(0),s=c(58),i=c(43),l=c(7);const u=(e,t=!0)=>{t?window.document.body.classList.add(e):window.document.body.classList.remove(e)},d=()=>{Object(i.hasFilter)("blocks.registerBlockType","core/lock/addAttribute")||Object(n.subscribe)((()=>{var e,t,c,o;const a=Object(n.select)(r.store);if(!a)return;const s=a.getSelectedBlock();s&&(u("wc-lock-selected-block--remove",!(null==s||null===(e=s.attributes)||void 0===e||null===(t=e.lock)||void 0===t||!t.remove)),u("wc-lock-selected-block--move",!(null==s||null===(c=s.attributes)||void 0===c||null===(o=c.lock)||void 0===o||!o.move)))}))},p=(e={})=>{const t=Object(a.useRef)(),c=Object(r.useBlockProps)({ref:t,...e});return(({ref:e})=>{const t=Object(i.hasFilter)("blocks.registerBlockType","core/lock/addAttribute"),c=e.current;Object(a.useEffect)((()=>{if(c&&!t)return c.addEventListener("keydown",e,{capture:!0,passive:!1}),()=>{c.removeEventListener("keydown",e,{capture:!0})};function e(e){const{keyCode:t,target:c}=e;if(!(c instanceof HTMLElement))return;if(t!==s.BACKSPACE&&t!==s.DELETE)return;if(Object(o.isTextField)(c))return;const a=c;void 0!==a.dataset.block&&(e=>{var t,c,o,a,s;if(!e)return!1;const{getBlock:i}=Object(n.select)(r.store),u=i(e);if("boolean"==typeof(null==u||null===(t=u.attributes)||void 0===t||null===(c=t.lock)||void 0===c?void 0:c.remove))return u.attributes.lock.remove;const d=Object(l.getBlockType)(u.name);var p,b,m;return"boolean"==typeof(null==d||null===(o=d.attributes)||void 0===o||null===(a=o.lock)||void 0===a||null===(s=a.default)||void 0===s?void 0:s.remove)&&(null==d||null===(p=d.attributes)||void 0===p||null===(b=p.lock)||void 0===b||null===(m=b.default)||void 0===m?void 0:m.remove)})(a.dataset.block)&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}}),[c,t])})({ref:t}),c}},function(e,t,c){"use strict";c.d(t,"a",(function(){return s}));var r=c(0),o=c(5),n=c(2),a=c(1);const s=({attributes:e,setAttributes:t})=>{const{hasDarkControls:c}=e;return Object(r.createElement)(o.InspectorControls,null,Object(r.createElement)(n.PanelBody,{title:Object(a.__)("Style","woocommerce")},Object(r.createElement)(n.ToggleControl,{label:Object(a.__)("Dark mode inputs","woocommerce"),help:Object(a.__)("Inputs styled specifically for use on dark background colors.","woocommerce"),checked:c,onChange:()=>t({hasDarkControls:!c})})))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,c){"use strict";c.r(t);var r=c(0),o=c(1),n=c(4),a=c.n(n),s=c(5),i=c(288),l=c(70),u=c(7),d=c(146),p=c(95),b=c(325);const m=({children:e,redirectUrl:t})=>Object(r.createElement)(b.a,{redirectUrl:t},e);var g=c(181),O=c(13),h=c(447),_=c(449),j=c(369),k=c(378);c(448);const f=Object(r.createContext)({hasDarkControls:!1});Object(u.registerBlockType)("woocommerce/filled-cart-block",{icon:{src:Object(r.createElement)(l.a,{icon:h.a,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e})=>{const t=Object(s.useBlockProps)(),{currentView:c}=Object(p.b)(),{hasDarkControls:o}=Object(r.useContext)(f),n=Object(j.a)(O.innerBlockAreas.FILLED_CART),i=[["woocommerce/cart-items-block",{},[]],["woocommerce/cart-totals-block",{},[]]];return Object(k.a)({clientId:e,registeredBlocks:n,defaultTemplate:i}),Object(r.createElement)("div",{...t,hidden:"woocommerce/filled-cart-block"!==c},Object(r.createElement)(_.a,{className:a()("wc-block-cart",{"has-dark-controls":o})},Object(r.createElement)(s.InnerBlocks,{allowedBlocks:n,template:i,templateLock:"insert"})))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()},Object(r.createElement)(s.InnerBlocks.Content,null))});var y=c(632),w=c(450);Object(u.registerBlockType)("woocommerce/cart-items-block",{icon:{src:Object(r.createElement)(l.a,{icon:y.a,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e})=>{const t=Object(s.useBlockProps)({className:"wc-block-cart__main"}),c=Object(j.a)(O.innerBlockAreas.CART_ITEMS),o=[["woocommerce/cart-line-items-block",{},[]],["woocommerce/cart-cross-sells-block",{},[]]];return Object(k.a)({clientId:e,registeredBlocks:c,defaultTemplate:o}),Object(r.createElement)(w.a,{...t},Object(r.createElement)(s.InnerBlocks,{allowedBlocks:c,template:o,templateLock:!1,renderAppender:s.InnerBlocks.ButtonBlockAppender}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()},Object(r.createElement)(s.InnerBlocks.Content,null))});var E=c(56),v=c(59),C=c(579),S=({className:e})=>{const{cartItems:t,cartIsLoading:c}=Object(v.a)();return Object(r.createElement)(C.a,{className:e,lineItems:t,isLoading:c})};Object(u.registerBlockType)("woocommerce/cart-line-items-block",{icon:{src:Object(r.createElement)(l.a,{icon:y.a,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,c=Object(s.useBlockProps)();return Object(r.createElement)("div",{...c},Object(r.createElement)(E.a,null,Object(r.createElement)(S,{className:t})))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})}),Object(u.registerBlockType)("woocommerce/cart-cross-sells-block",{icon:{src:Object(r.createElement)(l.a,{icon:y.a,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=Object(s.useBlockProps)({className:"wc-block-cart__cross-sells"}),t=[["core/heading",{content:Object(o.__)("You may be interested in…","woocommerce"),level:2,fontSize:"large"},[]],["woocommerce/cart-cross-sells-products-block",{},[]]];return Object(r.createElement)("div",{...e},Object(r.createElement)(s.InnerBlocks,{template:t,templateLock:!1}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()},Object(r.createElement)(s.InnerBlocks.Content,null))});var P=c(2),N=c(3),x=c(24),T=c(219),R=c(217),I=c(235),A=c(156),B=c(234),M=c(236),D=c(60),L=({product:e})=>Object(r.createElement)("div",{className:"cross-sells-product"},Object(r.createElement)(x.InnerBlockLayoutContextProvider,{parentName:"woocommerce/cart-cross-sells-block",parentClassName:"wp-block-cart-cross-sells-product"},Object(r.createElement)(x.ProductDataContextProvider,{isLoading:!1,product:e},Object(r.createElement)("div",null,Object(r.createElement)(T.a,{className:"",showSaleBadge:!1,productId:e.id,showProductLink:!1,saleBadgeAlign:"left",imageSizing:D.a.SINGLE,isDescendentOfQueryLoop:!1}),Object(r.createElement)(R.a,{align:"",headingLevel:3,showProductLink:!0}),Object(r.createElement)(I.Block,null),Object(r.createElement)(A.Block,{productId:e.id,align:"left"}),Object(r.createElement)(B.Block,null)),Object(r.createElement)(M.Block,null)))),F=({products:e,columns:t})=>{const c=e.map(((e,c)=>c>=t?null:Object(r.createElement)(L,{isLoading:!1,product:e,key:e.id})));return Object(r.createElement)("div",null,c)},V=c(387),$=({className:e,columns:t})=>{const{crossSellsProducts:c}=Object(v.a)();return void 0===t&&(t=V.attributes.columns.default),Object(r.createElement)(F,{className:e,columns:t,products:c})};c(452),c(451),Object(u.registerBlockType)("woocommerce/cart-cross-sells-products-block",{icon:{src:Object(r.createElement)(l.a,{icon:y.a,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:t})=>{const{className:c,columns:n}=e,a=Object(s.useBlockProps)();return Object(r.createElement)("div",{...a},Object(r.createElement)(s.InspectorControls,null,Object(r.createElement)(P.PanelBody,{title:Object(o.__)("Settings","woocommerce")},Object(r.createElement)(P.RangeControl,{label:Object(o.__)("Cross-Sells products to show","woocommerce"),value:n,onChange:e=>t({columns:e}),min:Object(N.getSetting)("minColumns",1),max:Object(N.getSetting)("maxColumns",6)}))),Object(r.createElement)(E.a,null,Object(r.createElement)($,{columns:n,className:c})))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})});var Y=c(454);c(453),Object(u.registerBlockType)("woocommerce/cart-totals-block",{icon:{src:Object(r.createElement)(l.a,{icon:y.a,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e})=>{const t=Object(s.useBlockProps)({className:"wc-block-cart__sidebar"}),c=Object(j.a)(O.innerBlockAreas.CART_TOTALS),o=[["woocommerce/cart-order-summary-block",{},[]],["woocommerce/cart-express-payment-block",{},[]],["woocommerce/proceed-to-checkout-block",{},[]],["woocommerce/cart-accepted-payment-methods-block",{},[]]];return Object(k.a)({clientId:e,registeredBlocks:c,defaultTemplate:o}),Object(r.createElement)(Y.a,{...t},Object(r.createElement)(s.InnerBlocks,{allowedBlocks:c,template:o,templateLock:!1,renderAppender:s.InnerBlocks.ButtonBlockAppender}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()},Object(r.createElement)(s.InnerBlocks.Content,null))});var U=c(268),z=c(68),K=c(85),H=c(6),q=c(8),W=c(240);c(295);var G=()=>{const{paymentMethods:e,isInitialized:t}=Object(U.a)(),{isCalculating:c,isProcessing:n,isAfterProcessing:a,isBeforeProcessing:s,isComplete:i,hasError:l}=Object(H.useSelect)((e=>{const t=e(q.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isBeforeProcessing:t.isBeforeProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}})),u=Object(H.useSelect)((e=>e(q.PAYMENT_STORE_KEY).isExpressPaymentMethodActive()));if(!t||t&&0===Object.keys(e).length)return null;const d=n||a||s||i&&!l;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(K.a,{isLoading:c||d||u},Object(r.createElement)("div",{className:"wc-block-components-express-payment wc-block-components-express-payment--cart"},Object(r.createElement)("div",{className:"wc-block-components-express-payment__content"},Object(r.createElement)(O.StoreNoticesContainer,{context:z.d.EXPRESS_PAYMENTS}),Object(r.createElement)(W.a,null)))),Object(r.createElement)("div",{className:"wc-block-components-express-payment-continue-rule wc-block-components-express-payment-continue-rule--cart"},Object(o.__)("Or","woocommerce")))},Q=({className:e})=>{const{cartNeedsPayment:t}=Object(v.a)();return t?Object(r.createElement)("div",{className:a()("wc-block-cart__payment-options",e)},Object(r.createElement)(G,null)):null};c(455);var Z=c(239);Object(u.registerBlockType)("woocommerce/cart-express-payment-block",{icon:{src:Object(r.createElement)(l.a,{style:{fill:"none"},icon:Z.a,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{paymentMethods:t,isInitialized:c}=Object(U.a)(),o=Object.keys(t).length>0,n=Object(s.useBlockProps)({className:a()({"wp-block-woocommerce-cart-express-payment-block--has-express-payment-methods":o})}),{className:i}=e;return c&&o?Object(r.createElement)("div",{...n},Object(r.createElement)(Q,{className:i})):null},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})});var X=c(620);const J=Object(o.__)("Proceed to Checkout","woocommerce");var ee={checkoutPageId:{type:"number",default:0},lock:{type:"object",default:{move:!0,remove:!0}},buttonLabel:{type:"string",default:J}},te=c(128),ce=c(242),re=c(17);c(456),Object(u.registerBlockType)("woocommerce/proceed-to-checkout-block",{icon:{src:Object(r.createElement)(l.a,{icon:X.a,className:"wc-block-editor-components-block-icon"})},attributes:ee,edit:({attributes:e,setAttributes:t})=>{const c=Object(s.useBlockProps)(),{checkoutPageId:n=0,buttonLabel:a}=e,{current:i}=Object(r.useRef)(n),l=Object(H.useSelect)((e=>i||e("core/editor").getCurrentPostId()),[i]);return Object(r.createElement)("div",{...c},Object(r.createElement)(s.InspectorControls,null,!(l===re.c&&0===i)&&Object(r.createElement)(ce.a,{pageId:n,setPageId:e=>t({checkoutPageId:e}),labels:{title:Object(o.__)("Proceed to Checkout button","woocommerce"),default:Object(o.__)("WooCommerce Checkout Page","woocommerce")}})),Object(r.createElement)(te.a,{className:"wc-block-cart__submit-button",value:a,placeholder:J,onChange:e=>{t({buttonLabel:e})}}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})});var oe=c(458);const ne=re.k?["core/paragraph",{align:"center",content:Object(o.sprintf)(/* translators: %s is the link to the store product directory. */
Object(o.__)('<a href="%s">Browse store</a>',"woocommerce"),re.k),dropCap:!1}]:null,ae=[["core/heading",{textAlign:"center",content:Object(o.__)("Your cart is currently empty!","woocommerce"),level:2,className:"with-empty-cart-icon wc-block-cart__empty-cart__title"}],ne,["core/separator",{className:"is-style-dots"}],["core/heading",{textAlign:"center",content:Object(o.__)("New in store","woocommerce"),level:2}],["woocommerce/product-new",{columns:3,rows:1}]].filter(Boolean);c(457),Object(u.registerBlockType)("woocommerce/empty-cart-block",{icon:{src:Object(r.createElement)(l.a,{icon:oe.a,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e})=>{const t=Object(s.useBlockProps)(),{currentView:c}=Object(p.b)(),o=Object(j.a)(O.innerBlockAreas.EMPTY_CART);return Object(k.a)({clientId:e,registeredBlocks:o,defaultTemplate:ae}),Object(r.createElement)("div",{...t,hidden:"woocommerce/empty-cart-block"!==c},Object(r.createElement)(s.InnerBlocks,{template:ae,templateLock:!1,renderAppender:s.InnerBlocks.ButtonBlockAppender}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()},Object(r.createElement)(s.InnerBlocks.Content,null))});var se=c(634),ie=c(176),le=c(459),ue=({className:e})=>{const{paymentMethods:t}=Object(U.b)();return Object(r.createElement)(ie.a,{className:e,icons:Object(le.a)(t)})};Object(u.registerBlockType)("woocommerce/cart-accepted-payment-methods-block",{icon:{src:Object(r.createElement)(l.a,{icon:se.a,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,c=Object(s.useBlockProps)();return Object(r.createElement)("div",{...c},Object(r.createElement)(ue,{className:t}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})});var de=c(262),pe=c(460),be=c(22);const me=()=>{const{extensions:e,receiveCart:t,...c}=Object(v.a)(),o={extensions:e,cart:c,context:"woocommerce/cart"};return Object(r.createElement)(O.ExperimentalOrderMeta.Slot,{...o})};Object(u.registerBlockType)("woocommerce/cart-order-summary-block",{icon:{src:Object(r.createElement)(l.a,{icon:de.a,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e})=>{const t=Object(s.useBlockProps)(),{cartTotals:c}=Object(v.a)(),n=Object(be.getCurrencyFromPriceResponse)(c),a=Object(j.a)(O.innerBlockAreas.CART_ORDER_SUMMARY),i=[["woocommerce/cart-order-summary-heading-block",{content:Object(o.__)("Cart totals","woocommerce")},[]],["woocommerce/cart-order-summary-coupon-form-block",{},[]],["woocommerce/cart-order-summary-subtotal-block",{},[]],["woocommerce/cart-order-summary-fee-block",{},[]],["woocommerce/cart-order-summary-discount-block",{},[]],["woocommerce/cart-order-summary-shipping-block",{},[]],["woocommerce/cart-order-summary-taxes-block",{},[]]];return Object(k.a)({clientId:e,registeredBlocks:a,defaultTemplate:i}),Object(r.createElement)("div",{...t},Object(r.createElement)(s.InnerBlocks,{allowedBlocks:a,template:i}),Object(r.createElement)("div",{className:"wc-block-components-totals-wrapper"},Object(r.createElement)(pe.a,{currency:n,values:c})),Object(r.createElement)(me,null))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()},Object(r.createElement)(s.InnerBlocks.Content,null))});var ge=({className:e=""})=>{const{cartTotals:t}=Object(v.a)(),c=Object(be.getCurrencyFromPriceResponse)(t);return Object(r.createElement)(O.TotalsWrapper,{className:e},Object(r.createElement)(O.Subtotal,{currency:c,values:t}))};Object(u.registerBlockType)("woocommerce/cart-order-summary-subtotal-block",{icon:{src:Object(r.createElement)(l.a,{icon:de.a,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,c=Object(s.useBlockProps)();return Object(r.createElement)("div",{...c},Object(r.createElement)(ge,{className:t}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})});var Oe=({className:e})=>{const{cartFees:t,cartTotals:c}=Object(v.a)(),o=Object(be.getCurrencyFromPriceResponse)(c);return Object(r.createElement)(O.TotalsWrapper,{className:e},Object(r.createElement)(O.TotalsFees,{currency:o,cartFees:t}))};Object(u.registerBlockType)("woocommerce/cart-order-summary-fee-block",{icon:{src:Object(r.createElement)(l.a,{icon:de.a,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,c=Object(s.useBlockProps)();return Object(r.createElement)("div",{...c},Object(r.createElement)(Oe,{className:t}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})});var he=c(461),_e=c(241);const je=()=>{const{extensions:e,receiveCart:t,...c}=Object(v.a)(),o={extensions:e,cart:c,context:"woocommerce/cart"};return Object(r.createElement)(O.ExperimentalDiscountsMeta.Slot,{...o})};var ke=({className:e})=>{const{cartTotals:t,cartCoupons:c}=Object(v.a)(),{removeCoupon:o,isRemovingCoupon:n}=Object(_e.a)("wc/cart"),a=Object(be.getCurrencyFromPriceResponse)(t);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(O.TotalsWrapper,{className:e},Object(r.createElement)(he.a,{cartCoupons:c,currency:a,isRemovingCoupon:n,removeCoupon:o,values:t})),Object(r.createElement)(je,null))};Object(u.registerBlockType)("woocommerce/cart-order-summary-discount-block",{icon:{src:Object(r.createElement)(l.a,{icon:de.a,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,c=Object(s.useBlockProps)();return Object(r.createElement)("div",{...c},Object(r.createElement)(ke,{className:t}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})});var fe=c(562),ye=({className:e,isShippingCalculatorEnabled:t})=>{const{cartTotals:c,cartNeedsShipping:o}=Object(v.a)();if(!o)return null;const n=Object(be.getCurrencyFromPriceResponse)(c);return Object(r.createElement)(O.TotalsWrapper,{className:e},Object(r.createElement)(fe.a,{showCalculator:t,showRateSelector:!0,values:c,currency:n}))},we={isShippingCalculatorEnabled:{type:"boolean",default:Object(N.getSetting)("isShippingCalculatorEnabled",!0)},lock:{type:"object",default:{move:!1,remove:!0}}};Object(u.registerBlockType)("woocommerce/cart-order-summary-shipping-block",{icon:{src:Object(r.createElement)(l.a,{icon:de.a,className:"wc-block-editor-components-block-icon"})},attributes:we,edit:({attributes:e,setAttributes:t})=>{const{isShippingCalculatorEnabled:c,className:n}=e,a=Object(N.getSetting)("shippingEnabled",!0),i=Object(s.useBlockProps)();return Object(r.createElement)("div",{...i},Object(r.createElement)(s.InspectorControls,null,!!a&&Object(r.createElement)(P.PanelBody,{title:Object(o.__)("Shipping rates","woocommerce")},Object(r.createElement)(P.ToggleControl,{label:Object(o.__)("Shipping calculator","woocommerce"),help:Object(o.__)("Allow customers to estimate shipping by entering their address.","woocommerce"),checked:c,onChange:()=>t({isShippingCalculatorEnabled:!c})}))),Object(r.createElement)(E.a,null,Object(r.createElement)(ye,{className:n,isShippingCalculatorEnabled:c})))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})});var Ee=c(637),ve=c(464),Ce=({className:e})=>{const t=Object(N.getSetting)("couponsEnabled",!0),{applyCoupon:c,isApplyingCoupon:o}=Object(_e.a)("wc/cart");return t?Object(r.createElement)(O.TotalsWrapper,{className:e},Object(r.createElement)(ve.a,{onSubmit:c,isLoading:o})):null};Object(u.registerBlockType)("woocommerce/cart-order-summary-coupon-form-block",{icon:{src:Object(r.createElement)(l.a,{icon:Ee.a,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,c=Object(s.useBlockProps)();return Object(r.createElement)("div",{...c},Object(r.createElement)(E.a,null,Object(r.createElement)(Ce,{className:t})))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})});var Se=({className:e,showRateAfterTaxName:t})=>{const{cartTotals:c}=Object(v.a)();if(Object(N.getSetting)("displayCartPricesIncludingTax",!1)||parseInt(c.total_tax,10)<=0)return null;const o=Object(be.getCurrencyFromPriceResponse)(c);return Object(r.createElement)(O.TotalsWrapper,{className:e},Object(r.createElement)(O.TotalsTaxes,{showRateAfterTaxName:t,currency:o,values:c}))},Pe={showRateAfterTaxName:{type:"boolean",default:Object(N.getSetting)("displayCartPricesIncludingTax",!1)},lock:{type:"object",default:{remove:!0,move:!1}}};Object(u.registerBlockType)("woocommerce/cart-order-summary-taxes-block",{icon:{src:Object(r.createElement)(l.a,{icon:de.a,className:"wc-block-editor-components-block-icon"})},attributes:Pe,edit:({attributes:e,setAttributes:t})=>{const{className:c,showRateAfterTaxName:n}=e,a=Object(s.useBlockProps)(),i=Object(N.getSetting)("taxesEnabled"),l=Object(N.getSetting)("displayItemizedTaxes",!1),u=Object(N.getSetting)("displayCartPricesIncludingTax",!1);return Object(r.createElement)("div",{...a},Object(r.createElement)(s.InspectorControls,null,i&&l&&!u&&Object(r.createElement)(P.PanelBody,{title:Object(o.__)("Taxes","woocommerce")},Object(r.createElement)(P.ToggleControl,{label:Object(o.__)("Show rate after tax name","woocommerce"),help:Object(o.__)("Show the percentage rate alongside each tax line in the summary.","woocommerce"),checked:n,onChange:()=>t({showRateAfterTaxName:!n})}))),Object(r.createElement)(Se,{className:c,showRateAfterTaxName:n}))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})}),c(465),Object(u.registerBlockType)("woocommerce/cart-order-summary-heading-block",{icon:{src:Object(r.createElement)(l.a,{icon:de.a,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:t})=>{const{content:c="",className:o=""}=e,n=Object(s.useBlockProps)();return Object(r.createElement)("div",{...n},Object(r.createElement)("span",{className:a()(o,"wc-block-cart__totals-title")},Object(r.createElement)(s.PlainText,{className:"",value:c,onChange:e=>t({content:e}),style:{backgroundColor:"transparent"}})))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save()})}),c(466);var Ne=c(468),xe=c(469),Te=(c(318),c(43)),Re=c(9),Ie=Object(r.createElement)(Re.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}));const Ae=(e,t,c=!0)=>{const{updateBlockAttributes:r,selectBlock:o}=Object(H.dispatch)("core/block-editor");var n,a;r(e,{currentView:t}),c&&o((null===(n=Object(H.select)("core/block-editor").getBlock(e))||void 0===n||null===(a=n.innerBlocks.find((e=>e.name===t)))||void 0===a?void 0:a.clientId)||e)},Be={views:[],currentView:"",viewClientId:""},Me=(e,t=10,c=0)=>{const r=c+1;if(r>t)return Be;const{getBlockAttributes:o,getBlockRootClientId:n}=Object(H.select)("core/block-editor"),a=n(e);if(null===a||""===a)return Be;const s=o(a);return s?void 0!==s.editorViews?{views:s.editorViews,currentView:s.currentView||s.editorViews[0].view,viewClientId:a}:Me(a,t,r):Be};var De=({currentView:e,views:t,clientId:c})=>{const{getBlockName:n,getSelectedBlockClientId:a,getBlockParentsByBlockName:i}=Object(H.useSelect)((e=>{const t=e("core/block-editor");return{getBlockName:t.getBlockName,getSelectedBlockClientId:t.getSelectedBlockClientId,getBlockParentsByBlockName:t.getBlockParentsByBlockName}}),[]),u=a(),d=((e,t)=>t.find((t=>t.view===e)))(e,t)||t[0],p=d.label;return Object(r.useLayoutEffect)((()=>{const r=u?n(u):null;if(!r||e===r)return;const o=t.map((e=>e.view));if(o.includes(r))return void Ae(c,r);const a=i(u,o),s=1===a.length?n(a[0]):null;s&&e!==s&&Ae(c,s,!1)}),[c,e,n,i,u,t]),Object(r.createElement)(s.BlockControls,null,Object(r.createElement)(P.ToolbarGroup,null,Object(r.createElement)(P.ToolbarDropdownMenu,{label:Object(o.__)("Switch view","woocommerce"),text:p,icon:Object(r.createElement)(l.a,{icon:Ie,style:{marginRight:"8px"}}),controls:t.map((t=>({...t,title:Object(r.createElement)("span",{style:{marginLeft:"8px"}},t.label),isActive:t.view===e,onClick:()=>{Ae(c,t.view)}})))})))};Object(Te.hasFilter)("editor.BlockEdit","woocommerce/with-view-switcher")||Object(Te.addFilter)("editor.BlockEdit","woocommerce/with-view-switcher",(e=>t=>{const{clientId:c}=t,{views:o,currentView:n,viewClientId:a}=Object(H.useSelect)((e=>{const t=e("core/block-editor").getBlockAttributes(c);return null!=t&&t.editorViews?{views:t.editorViews,currentView:t.currentView,viewClientId:c}:Me(c)}));return 0===o.length?Object(r.createElement)(e,{...t}):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(De,{currentView:n,views:o,clientId:a}),Object(r.createElement)(e,{...t}))}),11),Object(Ne.a)();const Le=["woocommerce/filled-cart-block","woocommerce/empty-cart-block"];c(446);const Fe={isPreview:{type:"boolean",default:!1},currentView:{type:"string",default:"woocommerce/filled-cart-block",source:"readonly"},editorViews:{type:"object",default:[{view:"woocommerce/filled-cart-block",label:Object(o.__)("Filled Cart","woocommerce"),icon:Object(r.createElement)(l.a,{icon:h.a})},{view:"woocommerce/empty-cart-block",label:Object(o.__)("Empty Cart","woocommerce"),icon:Object(r.createElement)(l.a,{icon:oe.a})}]},hasDarkControls:{type:"boolean",default:Object(N.getSetting)("hasDarkEditorStyleSupport",!1)},isShippingCalculatorEnabled:{type:"boolean",default:Object(N.getSetting)("isShippingCalculatorEnabled",!0)},checkoutPageId:{type:"number",default:0},showRateAfterTaxName:{type:"boolean",default:!0},align:{type:"string",default:"wide"}},Ve={title:Object(o.__)("Cart","woocommerce"),icon:{src:Object(r.createElement)(l.a,{icon:i.a,className:"wc-block-editor-components-block-icon"})},category:"woocommerce",keywords:[Object(o.__)("WooCommerce","woocommerce")],description:Object(o.__)("Shopping cart.","woocommerce"),supports:{align:["wide"],html:!1,multiple:!1},example:{attributes:{isPreview:!0},viewportWidth:800},attributes:Fe,edit:({className:e,attributes:t,setAttributes:c})=>{const{hasDarkControls:n,currentView:i,isPreview:l=!1}=t,u=Object(Ne.b)({className:a()(e,"wp-block-woocommerce-cart",{"is-editor-preview":l})});return Object(r.createElement)("div",{...u},Object(r.createElement)(s.InspectorControls,null,Object(r.createElement)(xe.a,{attributes:t,setAttributes:c})),Object(r.createElement)(d.a,{header:Object(o.__)("Cart Block Error","woocommerce"),text:Object(o.__)("There was an error whilst rendering the cart block. If this problem continues, try re-creating the block.","woocommerce"),showErrorMessage:!0,errorMessagePrefix:Object(o.__)("Error message:","woocommerce")},Object(r.createElement)(p.a,{previewData:{previewCart:g.a},currentView:i,isPreview:l},Object(r.createElement)(f.Provider,{value:{hasDarkControls:n}},Object(r.createElement)(O.SlotFillProvider,null,Object(r.createElement)(m,null,Object(r.createElement)(s.InnerBlocks,{allowedBlocks:Le,template:[["woocommerce/filled-cart-block",{},[]],["woocommerce/empty-cart-block",{},[]]],templateLock:"insert"})))))))},save:()=>Object(r.createElement)("div",{...s.useBlockProps.save({className:"is-loading"})},Object(r.createElement)(s.InnerBlocks.Content,null)),deprecated:[{attributes:Fe,save:({attributes:e})=>Object(r.createElement)("div",{className:a()("is-loading",e.className)},Object(r.createElement)(s.InnerBlocks.Content,null)),migrate:(e,t)=>{const{checkoutPageId:c,align:r}=e;return[e,[Object(u.createBlock)("woocommerce/filled-cart-block",{align:r},[Object(u.createBlock)("woocommerce/cart-items-block"),Object(u.createBlock)("woocommerce/cart-totals-block",{},[Object(u.createBlock)("woocommerce/cart-order-summary-block",{}),Object(u.createBlock)("woocommerce/cart-express-payment-block"),Object(u.createBlock)("woocommerce/proceed-to-checkout-block",{checkoutPageId:c}),Object(u.createBlock)("woocommerce/cart-accepted-payment-methods-block")])]),Object(u.createBlock)("woocommerce/empty-cart-block",{align:r},t)]]},isEligible:(e,t)=>!t.find((e=>"woocommerce/filled-cart-block"===e.name))}]};Object(u.registerBlockType)("woocommerce/cart",Ve)},,,,function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),a=c(1),s=c(59),i=c(13),l=c(10);const u=({selectedShippingRates:e})=>Object(r.createElement)("div",{className:"wc-block-components-totals-item__description wc-block-components-totals-shipping__via"},Object(l.decodeEntities)(e.filter(((t,c)=>e.indexOf(t)===c)).join(", ")));var d=c(197),p=c(282),b=c(8),m=c(6),g=c(324),O=c(462),h=c(71),_=c(25),j=c.n(_),k=(c(230),c(566)),f=({address:e,onUpdate:t,onCancel:c,addressFields:o})=>{const[n,s]=Object(r.useState)(e),{showAllValidationErrors:i}=Object(m.useDispatch)(b.VALIDATION_STORE_KEY),{hasValidationErrors:l,isCustomerDataUpdating:u}=Object(m.useSelect)((e=>({hasValidationErrors:e(b.VALIDATION_STORE_KEY).hasValidationErrors,isCustomerDataUpdating:e(b.CART_STORE_KEY).isCustomerDataUpdating()})));return Object(r.createElement)("form",{className:"wc-block-components-shipping-calculator-address"},Object(r.createElement)(k.a,{fields:o,onChange:s,values:n}),Object(r.createElement)(h.a,{className:"wc-block-components-shipping-calculator-address__button",disabled:u,onClick:r=>(r.preventDefault(),j()(n,e)?c():(i(),l()?void 0:t(n))),type:"submit"},Object(a.__)("Update","woocommerce")))},y=({onUpdate:e=(()=>{}),onCancel:t=(()=>{}),addressFields:c=["country","state","city","postcode"]})=>{const{shippingAddress:o}=Object(g.a)(),n="wc/cart/shipping-calculator";return Object(r.createElement)("div",{className:"wc-block-components-shipping-calculator"},Object(r.createElement)(i.StoreNoticesContainer,{context:n}),Object(r.createElement)(f,{address:o,addressFields:c,onCancel:t,onUpdate:t=>{Object(m.dispatch)(b.CART_STORE_KEY).updateCustomerData({shipping_address:t},!1).then((()=>{Object(O.b)(n),e(t)})).catch((e=>{Object(b.processErrorResponse)(e,n)}))}}))},w=c(3);const E=({label:e=Object(a.__)("Calculate","woocommerce"),isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:c})=>Object(r.createElement)("a",{role:"button",href:"#wc-block-components-shipping-calculator-address__link",className:"wc-block-components-totals-shipping__change-address__link",id:"wc-block-components-totals-shipping__change-address__link",onClick:e=>{e.preventDefault(),c(!t)},"aria-label":e,"aria-expanded":t},e);var v=({showCalculator:e,isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:c,isCheckout:o=!1})=>e?Object(r.createElement)(E,{label:Object(a.__)("Add an address for shipping options","woocommerce"),isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:c}):Object(r.createElement)("em",null,o?Object(a.__)("No shipping options available","woocommerce"):Object(a.__)("Calculated during checkout","woocommerce")),C=c(95),S=c(21),P=()=>{const{pickupAddress:e}=Object(m.useSelect)((e=>{const t=e("wc/store/cart").getShippingRates().flatMap((e=>e.shipping_rates)).find((e=>e.selected&&Object(d.d)(e)));if(Object(S.b)(t)&&Object(S.c)(t,"meta_data")){const e=t.meta_data.find((e=>"pickup_address"===e.key));if(Object(S.b)(e)&&Object(S.c)(e,"value")&&e.value)return{pickupAddress:e.value}}return Object(S.b)(t),{pickupAddress:void 0}}));return void 0===e?null:Object(r.createElement)("span",{className:"wc-block-components-shipping-address"},Object(a.sprintf)(/* translators: %s: shipping method name, e.g. "Amazon Locker" */
Object(a.__)("Collection from %s","woocommerce"),e)+" ")},N=({formattedLocation:e})=>e?Object(r.createElement)("span",{className:"wc-block-components-shipping-address"},Object(a.sprintf)(/* translators: %s location. */
Object(a.__)("Shipping to %s","woocommerce"),e)+" "):null,x=({showCalculator:e,isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:c,shippingAddress:o})=>{const n=Object(p.c)(o),{isEditor:s}=Object(C.b)(),i=Object(m.useSelect)((e=>e(b.CHECKOUT_STORE_KEY).prefersCollection()));if(!n&&!s)return null;const l=Object(p.b)(o);return Object(r.createElement)(r.Fragment,null,i?Object(r.createElement)(P,null):Object(r.createElement)(N,{formattedLocation:l}),e&&Object(r.createElement)(E,{label:Object(a.__)("Change address","woocommerce"),isShippingCalculatorOpen:t,setIsShippingCalculatorOpen:c}))},T=c(123),R=c(255),I=({hasRates:e,shippingRates:t,isLoadingRates:c,isAddressComplete:o})=>{const n=e?Object(a.__)("Shipping options","woocommerce"):Object(a.__)("Choose a shipping option","woocommerce");return Object(r.createElement)("fieldset",{className:"wc-block-components-totals-shipping__fieldset"},Object(r.createElement)("legend",{className:"screen-reader-text"},n),Object(r.createElement)(R.a,{className:"wc-block-components-totals-shipping__options",noResultsMessage:Object(r.createElement)(r.Fragment,null,o&&Object(r.createElement)(T.a,{isDismissible:!1,className:"wc-block-components-shipping-rates-control__no-results-notice",status:"warning"},Object(a.__)("There are no shipping options available. Please check your shipping address.","woocommerce"))),shippingRates:t,isLoadingRates:c,context:"woocommerce/cart"}))};c(300),t.a=({currency:e,values:t,showCalculator:c=!0,showRateSelector:o=!0,isCheckout:l=!1,className:g})=>{const[O,h]=Object(r.useState)(!1),{shippingAddress:_,cartHasCalculatedShipping:j,shippingRates:k,isLoadingRates:f}=Object(s.a)(),E=(e=>Object(w.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.total_shipping,10)+parseInt(e.total_shipping_tax,10):parseInt(e.total_shipping,10))(t),C=k.some((e=>e.shipping_rates.length))||E>0,S=c&&O,P=Object(m.useSelect)((e=>e(b.CHECKOUT_STORE_KEY).prefersCollection())),N=k.flatMap((e=>e.shipping_rates.filter((e=>P&&Object(d.d)(e)&&e.selected||!P&&e.selected)).flatMap((e=>e.name)))),T=Object(p.c)(_),R=((e,t,c)=>!e||!t&&c.some((e=>!e.shipping_rates.some((e=>!Object(d.c)(e.method_id))))))(C,P,k);return Object(r.createElement)("div",{className:n()("wc-block-components-totals-shipping",g)},Object(r.createElement)(i.TotalsItem,{label:Object(a.__)("Shipping","woocommerce"),value:!R&&j?E:(!T||l)&&Object(r.createElement)(v,{showCalculator:c,isCheckout:l,isShippingCalculatorOpen:O,setIsShippingCalculatorOpen:h}),description:!R&&j||T&&!l?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(u,{selectedShippingRates:N}),Object(r.createElement)(x,{shippingAddress:_,showCalculator:c,isShippingCalculatorOpen:O,setIsShippingCalculatorOpen:h})):null,currency:e}),S&&Object(r.createElement)(y,{onUpdate:()=>{h(!1)},onCancel:()=>{h(!1)}}),o&&j&&!S&&Object(r.createElement)(I,{hasRates:C,shippingRates:k,isLoadingRates:f,isAddressComplete:T}))}},,,,function(e,t,c){"use strict";var r=c(0),o=c(13),n=c(17),a=c(1),s=c(10),i=c(4),l=c.n(i),u=c(11),d=c(655),p=c(21),b=c(6),m=c(8);c(302);var g=Object(u.withInstanceId)((({id:e,className:t,label:c,onChange:n,options:s,value:i,required:u=!1,errorMessage:g=Object(a.__)("Please select a value.","woocommerce"),errorId:O,instanceId:h="0",autoComplete:_="off"})=>{const j=Object(r.useRef)(null),k=e||"control-"+h,f=O||k,{setValidationErrors:y,clearValidationError:w}=Object(b.useDispatch)(m.VALIDATION_STORE_KEY),E=Object(b.useSelect)((e=>e(m.VALIDATION_STORE_KEY).getValidationError(f)));return Object(r.useEffect)((()=>(!u||i?w(f):y({[f]:{message:g,hidden:!0}}),()=>{w(f)})),[w,i,f,g,u,y]),Object(r.createElement)("div",{id:k,className:l()("wc-block-components-combobox",t,{"is-active":i,"has-error":(null==E?void 0:E.message)&&!(null!=E&&E.hidden)}),ref:j},Object(r.createElement)(d.a,{className:"wc-block-components-combobox-control",label:c,onChange:n,onFilterValueChange:e=>{if(e.length){const t=Object(p.b)(j.current)?j.current.ownerDocument.activeElement:void 0;if(t&&Object(p.b)(j.current)&&j.current.contains(t))return;const c=e.toLocaleUpperCase(),r=s.find((e=>e.label.toLocaleUpperCase().startsWith(c)||e.value.toLocaleUpperCase()===c));r&&n(r.value)}},options:s,value:i||"",allowReset:!1,autoComplete:_,"aria-invalid":(null==E?void 0:E.message)&&!(null!=E&&E.hidden)}),Object(r.createElement)(o.ValidationInputError,{propertyName:f}))}));c(301);var O=({className:e,countries:t,id:c,label:o,onChange:n,value:i="",autoComplete:u="off",required:d=!1,errorId:p,errorMessage:b=Object(a.__)("Please select a country","woocommerce")})=>{const m=Object(r.useMemo)((()=>Object.entries(t).map((([e,t])=>({value:e,label:Object(s.decodeEntities)(t)})))),[t]);return Object(r.createElement)("div",{className:l()(e,"wc-block-components-country-input")},Object(r.createElement)(g,{id:c,label:o,onChange:n,options:m,value:i,errorId:p,errorMessage:b,required:d,autoComplete:u}))},h=e=>Object(r.createElement)(O,{countries:n.i,...e}),_=e=>Object(r.createElement)(O,{countries:n.a,...e});c(303);const j=(e,t)=>{const c=t.find((t=>t.label.toLocaleUpperCase()===e.toLocaleUpperCase()||t.value.toLocaleUpperCase()===e.toLocaleUpperCase()));return c?c.value:""};var k=({className:e,id:t,states:c,country:n,label:i,onChange:u,autoComplete:d="off",value:p="",required:b=!1,errorId:m=""})=>{const O=c[n],h=Object(r.useMemo)((()=>O?Object.keys(O).map((e=>({value:e,label:Object(s.decodeEntities)(O[e])}))):[]),[O]),_=Object(r.useCallback)((e=>{const t=h.length>0?j(e,h):e;t!==p&&u(t)}),[u,h,p]),k=Object(r.useRef)(p);return Object(r.useEffect)((()=>{k.current!==p&&(k.current=p)}),[p]),Object(r.useEffect)((()=>{if(h.length>0&&k.current){const e=j(k.current,h);e!==k.current&&_(e)}}),[h,_]),h.length>0?Object(r.createElement)(g,{className:l()(e,"wc-block-components-state-input"),id:t,label:i,onChange:_,options:h,value:p,errorMessage:Object(a.__)("Please select a state.","woocommerce"),errorId:m,required:b,autoComplete:d}):Object(r.createElement)(o.ValidatedTextInput,{className:e,id:t,label:i,onChange:_,autoComplete:d,value:p,required:b})},f=e=>Object(r.createElement)(k,{states:n.j,...e}),y=e=>Object(r.createElement)(k,{states:n.b,...e}),w=c(47),E=c(3),v=c(25),C=c.n(v),S=c(107);const P=Object.keys(E.defaultAddressFields);t.a=Object(u.withInstanceId)((({id:e="",fields:t=P,fieldConfig:c={},instanceId:n,onChange:s,type:i="shipping",values:l})=>{const u=Object(w.a)(t),d=Object(w.a)(c),p=Object(w.a)(l.country),g=Object(r.useMemo)((()=>{const e=Object(S.a)(u,d,p);return{fields:e,type:i,required:e.filter((e=>e.required)),hidden:e.filter((e=>e.hidden))}}),[u,d,p,i]),O=Object(r.useRef)({});return Object(r.useEffect)((()=>{const e={...l,...Object.fromEntries(g.hidden.map((e=>[e.key,""])))};C()(l,e)||s(e)}),[s,g,l]),Object(r.useEffect)((()=>{"shipping"===i&&(e=>{const t="shipping_country",c=Object(b.select)(m.VALIDATION_STORE_KEY).getValidationError(t);!e.country&&(e.city||e.state||e.postcode)&&(c?Object(b.dispatch)(m.VALIDATION_STORE_KEY).showValidationError(t):Object(b.dispatch)(m.VALIDATION_STORE_KEY).setValidationErrors({[t]:{message:Object(a.__)("Please select your country","woocommerce"),hidden:!1}})),c&&e.country&&Object(b.dispatch)(m.VALIDATION_STORE_KEY).clearValidationError(t)})(l)}),[l,i]),Object(r.useEffect)((()=>{var e,t;null===(e=O.current)||void 0===e||null===(t=e.postcode)||void 0===t||t.revalidate()}),[p]),e=e||n,Object(r.createElement)("div",{id:e,className:"wc-block-components-address-form"},g.fields.map((t=>{if(t.hidden)return null;const c={id:`${e}-${t.key}`,errorId:`${i}_${t.key}`,label:t.required?t.label:t.optionalLabel,autoCapitalize:t.autocapitalize,autoComplete:t.autocomplete,errorMessage:t.errorMessage,required:t.required,className:`wc-block-components-address-form__${t.key}`};if("country"===t.key){const e="shipping"===i?h:_;return Object(r.createElement)(e,{key:t.key,...c,value:l.country,onChange:e=>{const t={...l,country:e,state:""};l.postcode&&!Object(o.isPostcode)({postcode:l.postcode,country:e})&&(t.postcode=""),s(t)}})}if("state"===t.key){const e="shipping"===i?f:y;return Object(r.createElement)(e,{key:t.key,...c,country:l.country,value:l.state,onChange:e=>s({...l,state:e})})}return Object(r.createElement)(o.ValidatedTextInput,{key:t.key,ref:e=>O.current[t.key]=e,...c,value:l[t.key],onChange:e=>s({...l,[t.key]:e}),customFormatter:e=>"postcode"===t.key?e.trimStart().toUpperCase():e,customValidation:e=>((e,t,c)=>!((e.required||e.value)&&"postcode"===t&&c.country&&!Object(o.isPostcode)({postcode:e.value,country:c.country})&&(e.setCustomValidity(Object(a.__)("Please enter a valid postcode","woocommerce")),1)))(e,t.key,l)})})))}))},,,,,,,,,,,,,function(e,t,c){"use strict";var r=c(0),o=c(4),n=c.n(o),a=c(1),s=c(46),i=c(58),l=c(41);c(294);var u=({className:e,quantity:t=1,minimum:c=1,maximum:o,onChange:u=(()=>{}),step:d=1,itemName:p="",disabled:b})=>{const m=n()("wc-block-components-quantity-selector",e),g=Object(r.useRef)(null),O=Object(r.useRef)(null),h=Object(r.useRef)(null),_=void 0!==o,j=!b&&t-d>=c,k=!b&&(!_||t+d<=o),f=Object(r.useCallback)((e=>{let t=e;_&&(t=Math.min(t,Math.floor(o/d)*d)),t=Math.max(t,Math.ceil(c/d)*d),t=Math.floor(t/d)*d,t!==e&&u(t)}),[_,o,c,u,d]),y=Object(l.b)(f,300);Object(r.useLayoutEffect)((()=>{f(t)}),[t,f]);const w=Object(r.useCallback)((e=>{const c=void 0!==typeof e.key?"ArrowDown"===e.key:e.keyCode===i.DOWN,r=void 0!==typeof e.key?"ArrowUp"===e.key:e.keyCode===i.UP;c&&j&&(e.preventDefault(),u(t-d)),r&&k&&(e.preventDefault(),u(t+d))}),[t,u,k,j,d]);return Object(r.createElement)("div",{className:m},Object(r.createElement)("input",{ref:g,className:"wc-block-components-quantity-selector__input",disabled:b,type:"number",step:d,min:c,max:o,value:t,onKeyDown:w,onChange:e=>{let c=parseInt(e.target.value,10);c=isNaN(c)?t:c,c!==t&&(u(c),y(c))},"aria-label":Object(a.sprintf)(/* translators: %s refers to the item name in the cart. */
Object(a.__)("Quantity of %s in your cart.","woocommerce"),p)}),Object(r.createElement)("button",{ref:O,"aria-label":Object(a.sprintf)(/* translators: %s refers to the item name in the cart. */
Object(a.__)("Reduce quantity of %s","woocommerce"),p),className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--minus",disabled:!j,onClick:()=>{const e=t-d;u(e),Object(s.speak)(Object(a.sprintf)(/* translators: %s refers to the item's new quantity in the cart. */
Object(a.__)("Quantity reduced to %s.","woocommerce"),e)),f(e)}},"－"),Object(r.createElement)("button",{ref:h,"aria-label":Object(a.sprintf)(/* translators: %s refers to the item's name in the cart. */
Object(a.__)("Increase quantity of %s","woocommerce"),p),disabled:!k,className:"wc-block-components-quantity-selector__button wc-block-components-quantity-selector__button--plus",onClick:()=>{const e=t+d;u(e),Object(s.speak)(Object(a.sprintf)(/* translators: %s refers to the item's new quantity in the cart. */
Object(a.__)("Quantity increased to %s.","woocommerce"),e)),f(e)}},"＋"))},d=c(92),p=c(119),b=c(6),m=c(8),g=c(103),O=c(21),h=c(113),_=c(84),j=c(59);var k=c(97),f=c(22),y=c(13),w=c(130),E=c(3),v=c(172),C=c(149),S=c(173),P=c(177),N=c(40),x=c(93),T=({currency:e,saleAmount:t,format:c="<price/>"})=>{if(!t||t<=0)return null;c.includes("<price/>")||(c="<price/>",console.error("Price formats need to include the `<price/>` tag."));const o=Object(a.sprintf)(/* translators: %s will be replaced by the discount amount */
Object(a.__)("Save %s","woocommerce"),c);return Object(r.createElement)(x.a,{className:"wc-block-components-sale-badge"},Object(r.createInterpolateElement)(o,{price:Object(r.createElement)(N.a,{currency:e,value:t})}))};const R=(e,t)=>e.convertPrecision(t.minorUnit).getAmount(),I=e=>Object(y.mustContain)(e,"<price/>");var A=Object(r.forwardRef)((({lineItem:e,onRemove:t=(()=>{}),tabIndex:c},o)=>{const{name:i="",catalog_visibility:N="visible",short_description:x="",description:A="",low_stock_remaining:B=null,show_backorder_badge:M=!1,quantity_limits:D={minimum:1,maximum:99,multiple_of:1,editable:!0},sold_individually:L=!1,permalink:F="",images:V=[],variation:$=[],item_data:Y=[],prices:U={currency_code:"USD",currency_minor_unit:2,currency_symbol:"$",currency_prefix:"$",currency_suffix:"",currency_decimal_separator:".",currency_thousand_separator:",",price:"0",regular_price:"0",sale_price:"0",price_range:null,raw_prices:{precision:6,price:"0",regular_price:"0",sale_price:"0"}},totals:z={currency_code:"USD",currency_minor_unit:2,currency_symbol:"$",currency_prefix:"$",currency_suffix:"",currency_decimal_separator:".",currency_thousand_separator:",",line_subtotal:"0",line_subtotal_tax:"0"},extensions:K}=e,{quantity:H,setItemQuantity:q,removeItem:W,isPendingDelete:G}=(e=>{const t={key:"",quantity:1};(e=>Object(O.b)(e)&&Object(O.c)(e,"key")&&Object(O.c)(e,"quantity")&&Object(h.a)(e.key)&&Object(_.a)(e.quantity))(e)&&(t.key=e.key,t.quantity=e.quantity);const{key:c="",quantity:o=1}=t,{cartErrors:n}=Object(j.a)(),{__internalIncrementCalculating:a,__internalDecrementCalculating:s}=Object(b.useDispatch)(m.CHECKOUT_STORE_KEY),[i,u]=Object(r.useState)(o),[d]=Object(l.a)(i,400),p=Object(g.a)(d),{removeItemFromCart:k,changeCartItemQuantity:f}=Object(b.useDispatch)(m.CART_STORE_KEY);Object(r.useEffect)((()=>u(o)),[o]);const y=Object(b.useSelect)((e=>{if(!c)return{quantity:!1,delete:!1};const t=e(m.CART_STORE_KEY);return{quantity:t.isItemPendingQuantity(c),delete:t.isItemPendingDelete(c)}}),[c]),w=Object(r.useCallback)((()=>c?k(c).catch((e=>{Object(m.processErrorResponse)(e)})):Promise.resolve(!1)),[c,k]);return Object(r.useEffect)((()=>{c&&Object(_.a)(p)&&Number.isFinite(p)&&p!==d&&f(c,d).catch((e=>{Object(m.processErrorResponse)(e)}))}),[c,f,d,p]),Object(r.useEffect)((()=>(y.delete?a():s(),()=>{y.delete&&s()})),[s,a,y.delete]),Object(r.useEffect)((()=>(y.quantity||d!==i?a():s(),()=>{(y.quantity||d!==i)&&s()})),[a,s,y.quantity,d,i]),{isPendingDelete:y.delete,quantity:i,setItemQuantity:u,removeItem:w,cartItemQuantityErrors:n}})(e),{dispatchStoreEvent:Q}=Object(k.a)(),{receiveCart:Z,...X}=Object(j.a)(),J=Object(r.useMemo)((()=>({context:"cart",cartItem:e,cart:X})),[e,X]),ee=Object(f.getCurrencyFromPriceResponse)(U),te=Object(y.applyCheckoutFilter)({filterName:"itemName",defaultValue:i,extensions:K,arg:J}),ce=Object(w.a)({amount:parseInt(U.raw_prices.regular_price,10),precision:U.raw_prices.precision}),re=Object(w.a)({amount:parseInt(U.raw_prices.price,10),precision:U.raw_prices.precision}),oe=ce.subtract(re),ne=oe.multiply(H),ae=Object(f.getCurrencyFromPriceResponse)(z);let se=parseInt(z.line_subtotal,10);Object(E.getSetting)("displayCartPricesIncludingTax",!1)&&(se+=parseInt(z.line_subtotal_tax,10));const ie=Object(w.a)({amount:se,precision:ae.minorUnit}),le=V.length?V[0]:{},ue="hidden"===N||"search"===N,de=Object(y.applyCheckoutFilter)({filterName:"cartItemClass",defaultValue:"",extensions:K,arg:J}),pe=Object(y.applyCheckoutFilter)({filterName:"cartItemPrice",defaultValue:"<price/>",extensions:K,arg:J,validation:I}),be=Object(y.applyCheckoutFilter)({filterName:"subtotalPriceFormat",defaultValue:"<price/>",extensions:K,arg:J,validation:I}),me=Object(y.applyCheckoutFilter)({filterName:"saleBadgePriceFormat",defaultValue:"<price/>",extensions:K,arg:J,validation:I}),ge=Object(y.applyCheckoutFilter)({filterName:"showRemoveItemLink",defaultValue:!0,extensions:K,arg:J});return Object(r.createElement)("tr",{className:n()("wc-block-cart-items__row",de,{"is-disabled":G}),ref:o,tabIndex:c},Object(r.createElement)("td",{className:"wc-block-cart-item__image","aria-hidden":!Object(O.c)(le,"alt")||!le.alt},ue?Object(r.createElement)(C.a,{image:le,fallbackAlt:te}):Object(r.createElement)("a",{href:F,tabIndex:-1},Object(r.createElement)(C.a,{image:le,fallbackAlt:te}))),Object(r.createElement)("td",{className:"wc-block-cart-item__product"},Object(r.createElement)("div",{className:"wc-block-cart-item__wrap"},Object(r.createElement)(p.a,{disabled:G||ue,name:te,permalink:F}),M?Object(r.createElement)(v.a,null):!!B&&Object(r.createElement)(S.a,{lowStockRemaining:B}),Object(r.createElement)("div",{className:"wc-block-cart-item__prices"},Object(r.createElement)(d.a,{currency:ee,regularPrice:R(ce,ee),price:R(re,ee),format:be})),Object(r.createElement)(T,{currency:ee,saleAmount:R(oe,ee),format:me}),Object(r.createElement)(P.a,{shortDescription:x,fullDescription:A,itemData:Y,variation:$}),Object(r.createElement)("div",{className:"wc-block-cart-item__quantity"},!L&&!!D.editable&&Object(r.createElement)(u,{disabled:G,quantity:H,minimum:D.minimum,maximum:D.maximum,step:D.multiple_of,onChange:t=>{q(t),Q("cart-set-item-quantity",{product:e,quantity:t})},itemName:te}),ge&&Object(r.createElement)("button",{className:"wc-block-cart-item__remove-link","aria-label":Object(a.sprintf)(/* translators: %s refers to the item's name in the cart. */
Object(a.__)("Remove %s from cart","woocommerce"),te),onClick:()=>{t(),W(),Q("cart-remove-item",{product:e,quantity:H}),Object(s.speak)(Object(a.sprintf)(/* translators: %s refers to the item name in the cart. */
Object(a.__)("%s has been removed from your cart.","woocommerce"),te))},disabled:G},Object(a.__)("Remove item","woocommerce"))))),Object(r.createElement)("td",{className:"wc-block-cart-item__total"},Object(r.createElement)("div",{className:"wc-block-cart-item__total-price-and-sale-badge-wrapper"},Object(r.createElement)(d.a,{currency:ae,format:pe,price:ie.getAmount()}),H>1&&Object(r.createElement)(T,{currency:ee,saleAmount:R(ne,ee),format:me}))))}));c(293);const B=[...Array(3)].map(((_x,e)=>Object(r.createElement)(A,{lineItem:{},key:e}))),M=e=>{const t={};return e.forEach((({key:e})=>{t[e]=Object(r.createRef)()})),t};t.a=({lineItems:e=[],isLoading:t=!1,className:c})=>{const o=Object(r.useRef)(null),s=Object(r.useRef)(M(e));Object(r.useEffect)((()=>{s.current=M(e)}),[e]);const i=e=>()=>{null!=s&&s.current&&e&&s.current[e].current instanceof HTMLElement?s.current[e].current.focus():o.current instanceof HTMLElement&&o.current.focus()},l=t?B:e.map(((t,c)=>{const o=e.length>c+1?e[c+1].key:null;return Object(r.createElement)(A,{key:t.key,lineItem:t,onRemove:i(o),ref:s.current[t.key],tabIndex:-1})}));return Object(r.createElement)("table",{className:n()("wc-block-cart-items",c),ref:o,tabIndex:-1},Object(r.createElement)("thead",null,Object(r.createElement)("tr",{className:"wc-block-cart-items__header"},Object(r.createElement)("th",{className:"wc-block-cart-items__header-image"},Object(r.createElement)("span",null,Object(a.__)("Product","woocommerce"))),Object(r.createElement)("th",{className:"wc-block-cart-items__header-product"},Object(r.createElement)("span",null,Object(a.__)("Details","woocommerce"))),Object(r.createElement)("th",{className:"wc-block-cart-items__header-total"},Object(r.createElement)("span",null,Object(a.__)("Total","woocommerce"))))),Object(r.createElement)("tbody",null,l))}}]);